Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 6th August 2008, 10:37   #1
jason_azhe
Junior Member
 
Join Date: Aug 2008
Posts: 3
Does NSIS support creating thread?

I'm writing a plugin dll for NSIS within which a thread needs be created. But it turned out failure.
I'm not sure if NSIS supports thread-creating within its dll plugins. I found the thread was created successfully when I debugged into the dll. But when the program keeps going, it crashes. Code snippet is pasted below. Can anybody give a clue?
Thanks!

//---------------
extern "C" __declspec(dllexport) void ShowProgress(HWND hwndParent, int string_size, char *variables, stack_t **stacktop)
{
CreateThread(NULL, 0, ShowProgressEx, 0, 0, 0);
}

DWORD WINAPI ShowProgressEx(void*)
{
return 0;
}
jason_azhe is offline   Reply With Quote
Old 6th August 2008, 10:55   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
You need /nounload on the plug-in call.

Stu

Need an installer? http://www.afrowsoft.co.uk
Afrow UK is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump