Results 1 to 7 of 7

Thread: Errors On Program Exit

  1. #1

    Thread Starter
    Frenzied Member Technocrat's Avatar
    Join Date
    Jan 2000
    Location
    I live in the 1s and 0s of everyones data streams
    Posts
    1,024

    Errors On Program Exit

    I started playing with my new copy of MSVC++ 7 with a program that I am working on. With MSVC++ 6 I was getting the following 2 errors/messages after everything had closed in the debug window:
    The thread 0xFFF6B423 has exited with code -1 (0xFFFFFFFF).
    The thread 0xFFF5B5BF has exited with code -1 (0xFFFFFFFF).

    Now with MSVC++ 7 I get these errors on close:
    First-chance exception at 0x77fa03bc in MyProj.exe: 0xC0000008: An invalid HANDLE was specified.
    Unhandled exception at 0x77fa03bc in MyProj.exe: 0xC0000008: An invalid HANDLE was specified.

    And the MSVC++ breaks at that point and I have to hit continue or break to move on.

    They seem to be triggered by __crtExitProcess(0); Which is not done by me, it must be done by MSVC.

    My first question is, are these two errors/messages the same? Second, are how can I fix or track down these?

    Any help would be great.
    MSVS 6, .NET & .NET 2003 Pro
    I HATE MSDN with .NET & .NET 2003!!!

    Check out my sites:
    http://www.filthyhands.com
    http://www.techno-coding.com


  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    The VC++6 ones are perfectly okay, they just mean that a thread exited with a specified return value (if its random, be worried ).

    Have you tried running it through the debugger? What destructors do things with HANDLE values?
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  3. #3

    Thread Starter
    Frenzied Member Technocrat's Avatar
    Join Date
    Jan 2000
    Location
    I live in the 1s and 0s of everyones data streams
    Posts
    1,024
    Well I have stepped through my program and tried to track it down. I am pretty sure that the error is cause by some COM objects and/or some Novell objects that are using CoCreateInstance to hookup. Any idea how and I can track this down farther?
    MSVS 6, .NET & .NET 2003 Pro
    I HATE MSDN with .NET & .NET 2003!!!

    Check out my sites:
    http://www.filthyhands.com
    http://www.techno-coding.com


  4. #4
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Never used COM (I avoid things like that) so I wouldn't know, sorry.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  5. #5

    Thread Starter
    Frenzied Member Technocrat's Avatar
    Join Date
    Jan 2000
    Location
    I live in the 1s and 0s of everyones data streams
    Posts
    1,024
    AAAHHH parksie come on man your letting me down.
    You have always been helpful in the past.....I guess my image of you has been shattered forever now.

    Oh well I will keep trying. Hopefully I will get it sooner or later.
    MSVS 6, .NET & .NET 2003 Pro
    I HATE MSDN with .NET & .NET 2003!!!

    Check out my sites:
    http://www.filthyhands.com
    http://www.techno-coding.com


  6. #6
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    COM doesn't fit into my ideas of system development - why bother when you've got all the object orientation features you need with C++? You can do RPC with CORBA which is much better suited to C++.

    I think RPC is in Bjarne Stroustrup's presentation notes for possible additions to C++.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  7. #7

    Thread Starter
    Frenzied Member Technocrat's Avatar
    Join Date
    Jan 2000
    Location
    I live in the 1s and 0s of everyones data streams
    Posts
    1,024
    Believe me if I could do it another way I would. But to my knowledge it is the only way to hookup to Novell's GroupWise. Unfortuanatly the Docs are awful and the examples are even worse. So I am stuck with this for now I guess.
    MSVS 6, .NET & .NET 2003 Pro
    I HATE MSDN with .NET & .NET 2003!!!

    Check out my sites:
    http://www.filthyhands.com
    http://www.techno-coding.com


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