Threading and Synchronization with the WebBrowswer control

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



My application is built around an instance of the WebBrowser control. When I run it in the debugger, I see a number of threads created after my app calls the Navigate2() method.

My app is compiled and linked with the single threaded libraries and so far I haven't seen any problems as a result but I'm now concerned that there may be potential problems that I haven't seen yet.

Are the calls to my methods (including events based on IDispatch) guaranteed to be serialized? Are Windows messages used for this purpose? Is it possible for an event method be called after it has been unhooked by a call to Unadvise() because the event was triggered by code running asynchronously in one those other threads?

TIA for any thoughts on this.
Norm
--
--
To reply, change domain to an adult feline.

.



Relevant Pages

  • Re: Reprise: Pended IOCtrl + LoadLibrary == Deadlock?
    ... the original probelm in the debugger, ... and execute!htrace in both devenv.exe and the target app. ... > If I try to reproduce the error by launching the app from DevStudio, ... >>> ....looking at the docs for STARTUPINFO, ...
    (microsoft.public.development.device.drivers)
  • Re: Reprise: Pended IOCtrl + LoadLibrary == Deadlock?
    ... I have run appverifier and!htrace on the app. ... If I try to reproduce the error by launching the app from DevStudio, ... >> ....looking at the docs for STARTUPINFO, ... > you seem to have KD and a user mode debugger. ...
    (microsoft.public.development.device.drivers)
  • Re: Install problem (previous version of windows mobile)
    ... Are you sure your app can handle the screen resolution of the ... Pocket PC 2003 you've been testing? ... When I run programs under the Windows CE debuggers, ... run on their on (on real devices without a debugger). ...
    (microsoft.public.pocketpc.developer)
  • Re: Device driver crash ?? - in udevice.exe
    ... Thanks again - will get back once I've had a play with the debugger:-O. ... document somewhere which explains this (KITL etc.) process ??. ... NB I need to use the serial ports for my app - so need KITL to use ... device drivers - and it seems to be running some 33 threads - normally ...
    (microsoft.public.windowsce.embedded)
  • Re: Windows Forms apps not "ending" when you close the form window
    ... I would suspect that the application starts a worker thread ... The thread, in turn, prevents the app from finishing. ... the debugger on any regular basis. ... Either it's breaking before the closing ...
    (microsoft.public.dotnet.languages.vc)