View Single Post
Old 4th October 2011, 05:14   #4
T.Slappy
Major Dude
 
T.Slappy's Avatar
 
Join Date: Jan 2006
Location: Slovakia
Posts: 555
Send a message via ICQ to T.Slappy
I think problem is in NSW. I did not looked into sources but if it is similar to nsDialogs all components [also the timer] are created in one thread = GUI thread which is bad.

Quote:
Originally Posted by hphantom View Post
How can I find what thread/process the code is running in so I don't overlap them?
Normally when you start new thread you get its ID so every thread is unique. try using this ID to recognize correct thread.
Use my ThreadTimer plugin as reference: http://nsis.sourceforge.net/ThreadTimer_plug-in

By the way I am developing new plug-in specially with this purpose - it creates new separated thread which shows window with Please wait... message and gif animation

Cool looking installers with custom design: www.graphical-installer.com
Create Setup Pages easily: www.install-designer.com
Build installers in Visual Studio 2005-2019: www.visual-installer.com
or RAD Studio 2009, 2010, XE-10.4 Sydney: www.rad-installer.com
T.Slappy is offline   Reply With Quote