Skip to Content
0
Former Member
Oct 24, 2005 at 03:48 PM

vb+screenpainter deadlock SBO

20 Views

I've got a weird problem. (Edit: And pinpointed it)

I started typing this as a problem, but 'solved' it in the process. That is, not solved it, just prevented it.

I'm adding elements to an existing SBO form using VB. But when I add an element outside the visible area of the screen, SBO locks up.

SBO becomes 'not responding' and causes a 50% processor load. (I'm using a dual pentium 4, the load on each pocessors fluctuates between 25 and 75%, but the combined load always adds up to 50%)

There is also a screen painter application, with 0% load.

SBO can only be terminated using the task manager.

Strangely enough, the problem only occurs when the Screen Painter add-on is running. Without the screen painter the code runs just fine.

My best guess is that screen painter catches some exception it isn't supposed to catch and has no handler for it, causing an infinite loop. But I'm just guessing this.

I have a feeling this might also cause crashes during resizing when the form is made smaller and an element on it would get outside the visible part. My first attempts in resizing a form all crashed when downsizing a form. Maybe I've just found the cause for that as well.