Skip to Content
0
Former Member
Feb 03, 2005 at 05:08 PM

ProgressBar Lockup

138 Views

SBO 6.70.185 SP:00 PL:05

I encounter sporadic exceptions using SAPbouiCOM.ProgressBar:

During writing to ProgressBar.Text:

System.Runtime.InteropServices.COMException (0xFFFFE37B): Progress Bar - has stopped

..which is pretty bad since I can't release the ProgressBar anymore. Even setting it's reference to "nothing" (VB.NET) and calling GC.Collect() doesn't change anything.

Even though it's a stoppable ProgressBar I'm definitely sure noone has stopped it; neither manually nor programmatically. There is no other code in my addon which might stop it, and there's no other addons running.

I catch such events and try to perform StatusBar.CreateProgressBar, which then results in:

System.Runtime.InteropServices.COMException (0xFFFFE37C): Progress Bar - resource is occupied and can not be used at this time

Once the ProgressBar appears occupied SBO keeps it like that. Restart of Addon has no effect.

The class member which creates and accesses the ProgressBar runs in a separate thread. This has proven as a valid method to start functions from the ItemEvent routine yet allowing further event handling. Without this trick the ProgressBar Stop button could never get clicked.

Anyway, once the error occurs I cannot release the ProgressBar, which results in a complete lock-up of the SBO Client application.

Any experience or ideas?