|
-
Nov 1st, 2004, 01:10 AM
#1
Thread Starter
PowerPoster
Dx--DD: One app, 2 threads??
The thread 0xFFF8D3A7 has exited with code -1 (0xFFFFFFFF).
The thread 0xFFF7BE9F has exited with code 666 (0x29A).
The program 'programname' has exited with code 666 (0x29A).
Now, at the end of winmain i got return 666.
See, I know its Dx doing it, the second thread appears once I create a interface with DirectDraw.
So, it exits with -1..that good?
"From what was there, and was meant to be, but not of that was faded away." - - Steve Damm
"The polar opposite of nothingness is existance. When existance calls apon nothingness it shall return to nothingness." - - Steve Damm
"When you do things right, people won't be sure if you did anything at all." - - God from Futurama
-
Nov 1st, 2004, 08:52 AM
#2
Did you make the DX object with the multi thread FLAG?
Edit: Ohhhh and why are you trying to use both of them at the same time?
-
Nov 1st, 2004, 01:59 PM
#3
I guess that -1 means that the thread was terminated forcefully - because the main thread terminated. That's nothing to worry about.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Nov 1st, 2004, 04:56 PM
#4
Thread Starter
PowerPoster
@NoteMe
HRESULT hRet = DirectDrawCreateEx(NULL, (void**)&DD, IID_IDirectDraw7, NULL);
when that line process's, another thread is attached to my main thread.
I can check it out in spy++.....
So I aint specifiing the flag.
@CB
I always figured -1 would be an error, but seeing I am doing nothing but creating and releasing/null the interfact with DD it can't be error. So your probably right
"From what was there, and was meant to be, but not of that was faded away." - - Steve Damm
"The polar opposite of nothingness is existance. When existance calls apon nothingness it shall return to nothingness." - - Steve Damm
"When you do things right, people won't be sure if you did anything at all." - - God from Futurama
-
Nov 2nd, 2004, 07:05 AM
#5
When you debug an app and then force-kill it by pressing the stop button, the indicated return value is -1. So I'm very sure about this.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|