At creation thread Win98SE hangs
File:
...................
invoke CreateThread,NULL,1000,Thread_IR,0,ID_Thread
...................
proc Thread_IR,param
enter
invoke MessageBox,0,EditClass,EditClass,MB_OK
return

What is wrong?
Posted on 2003-06-30 00:42:47 by pas
there are 6 arguments to create thread not 5.

try this:

invoke CreateThread,NULL,1000,Thread_IR,0,0,ID_Thread
Posted on 2003-06-30 00:59:53 by RobotBob
invoke CreateThread,NULL,1000,Thread_IR,0,ID_Thread

should possibly be
invoke CreateThread,NULL,1000,offset Thread_IR,0,offset
ID_Thread

i personally dont use invoke so i might be wrong

push offset thread_id_storage ; address of returned thread identifier
push 00h ; creation flags
push "ello" ; param that will be passed to new thread
push offset my_thread_proc ; address of thread function
push 0 ; initial thread stack size
push 0 ; security attributes
call CreateThread

oh heh, you're missing parameters you might wanna check the CreateThread api docs ;)

HANDLE CreateThread(

LPSECURITY_ATTRIBUTES lpThreadAttributes, // address of thread security attributes
DWORD dwStackSize, // initial thread stack size, in bytes
LPTHREAD_START_ROUTINE lpStartAddress, // address of thread function
LPVOID lpParameter, // argument for new thread
DWORD dwCreationFlags, // creation flags
LPDWORD lpThreadId // address of returned thread identifier
);

hope that helps

damn robotbob got there a couple of seconds before me
Posted on 2003-06-30 01:01:55 by evlncrn8