Results 1 to 5 of 5

Thread: Dx--DD: One app, 2 threads??

  1. #1

    Thread Starter
    PowerPoster Halsafar's Avatar
    Join Date
    Jun 2004
    Location
    Saskatoon, SK
    Posts
    2,339

    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

  2. #2
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    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?

  3. #3
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    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.

  4. #4

    Thread Starter
    PowerPoster Halsafar's Avatar
    Join Date
    Jun 2004
    Location
    Saskatoon, SK
    Posts
    2,339
    @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

  5. #5
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    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
  •  



Click Here to Expand Forum to Full Width