Black WVWindowParent
Posted: Wed Jul 17, 2024 3:56 pm
Hi,
My app is similar to the tabbed browser demo, although it uses multiple nested TFrames. The WVBrowser and WVWindowParent are in one such child frame. When I create the browser it shows completely black:

There are no errors, and OnAfterCreated event fires fine. When I try to load any url after this nothing happens. It looks like the "browser" has some how bombed out, although no error is reported.
If I use a Timer to create the browser (WVBrowser1.CreateBrowser), then it works fine and this problem does not occur. However, if timer is set to a low interval it will sometimes occur, e.g. if high CPU usage. I obviously want to set timer to lowest possible value.
Is there a way for me to check programmatically if such an error has occurred, e.g. some WVBrowser / WVWindowParent property/function to test if browser has bombed out?
My app is similar to the tabbed browser demo, although it uses multiple nested TFrames. The WVBrowser and WVWindowParent are in one such child frame. When I create the browser it shows completely black:

There are no errors, and OnAfterCreated event fires fine. When I try to load any url after this nothing happens. It looks like the "browser" has some how bombed out, although no error is reported.
If I use a Timer to create the browser (WVBrowser1.CreateBrowser), then it works fine and this problem does not occur. However, if timer is set to a low interval it will sometimes occur, e.g. if high CPU usage. I obviously want to set timer to lowest possible value.
Is there a way for me to check programmatically if such an error has occurred, e.g. some WVBrowser / WVWindowParent property/function to test if browser has bombed out?