Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

UI Threads

Status
Not open for further replies.

Zyrenthian

Programmer
Mar 30, 2001
1,440
US
Does anyone have any experience with UI Threads in a Dialog Based app? I have found an MSDN example of an MDI app but I cant get it to work in a dialog based app. The problem I am having is I am trying to load a CHTMLDialog in its own thread. The reason for this is because of a Java Applet that is being loaded. The applet was not designed to have multiple instances AND it was not designed with a worker thread. This poses 2 problems. One, the screen will not refresh when the Applet is loading. This is a java issue that I have no control over. The fact that it has problems when multiple instances are declared is where the real problem is. When I open 2 HTML Dialogs and interact with the applet, I get into a deadlock situation where both apps are trying to access a database at the same time. This kills the C++ app. The window will not refresh until the applet is done but because of the deadlock, that will never happen.

The assumption is that by running a UI Thread, I could still interact with my application while the 2 child windows loading the applet are in deadlock.

Any input is welcome.

Thanx in advance
Matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top