|
|
#1 |
|
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; } |
|
|
|
|
|
#2 |
|
Moderator
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 |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|