April 30th, 2012 11:59 AM
Problem Solved using this method
http://www.edaboard.com/thread20874.html
u gave me the key Skizmo Thx both of you.
Reps added
April 30th, 2012 11:01 AM
Yea i was afraid that was the problem.
how might i update that window from the thread without using UpDateData()
Thx for the answer;
April 30th, 2012 10:15 AM
CopyFileEx Doesnt return until it completes which made me think that i need to create a thread to allow posting the progress but when i use a thread
the UpdateData(FALSE); crashes the app
...
March 27th, 2012 02:16 AM
Solved... the thing was that there were no messages to process so GetMessage Never Returned...
so i deliverated sent a message with "PostThreadMessage" to that spesific thread to "Unlock" and...
March 26th, 2012 09:27 PM
well the callback is a function called externally by its address, i dont want the thread to exit cause if it exits it wont process callbacks.
Sleep, WaitForSingleObject lock the thread and wont...
March 26th, 2012 04:44 PM
while(!WaitForSingleObject(hThread, 0) == WAIT_OBJECT_0){
}
this works perfectly it allows me to exit once the thread has ended but... it blocks the code and doesnt allow the...
March 26th, 2012 02:46 PM
this will exit immediately and i need the thread to stay alive once this exits the thread dies and wont be able to process the callbacks.
getmessage does just that prefectly the only problem is...
March 26th, 2012 01:06 PM
Hello
I have a function that does a wait on a thread but allows call backs to get in without exiting the thread.
so all i want is a way to avoid thread from exiting but still allowing the...
March 30th, 2011 12:54 AM
this line causes the 10038 error on WSAGetLastError(); "But only when the class instance is being reused" thats why i mean when I close socket+thread.
SOCKET sock = socket(nFamily, nType, 0);