Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello, I get this error while running my application at random times,

Unhandled exception at 0x7762706f (ntdll.dll) in g_txtt_testapp.exe: 0xC0000008: An invalid handle was specified.


The call stack is:

XML
ntdll.dll!_KiRaiseUserExceptionDispatcher@0()  + 0x37 bytes
ntdll.dll!_KiFastSystemCall@0()  + 0x3 bytes
ntdll.dll!_NtClose@4()  + 0xc bytes
KernelBase.dll!_CloseHandle@4()  + 0x19 bytes
kernel32.dll!_CloseHandleImplementation@4()  + 0x28 bytes
networkitemfactory.dll!6c1a2819()
[Frames below may be incorrect and/or missing, no symbols loaded for networkitemfactory.dll]
shlwapi.dll!772043c0()
kernel32.dll!@BaseThreadInitThunk@12()  + 0x12 bytes
ntdll.dll!___RtlUserThreadStart@8()  + 0x27 bytes
ntdll.dll!__RtlUserThreadStart@8()  + 0x1b bytes


How should I find where the problem is?

After the exception is thrown I can continue the application, and everything works as expected.

Is there a way to catch/block this exception, or continue automatically after it was thrown?

Thanks,
Robert
Posted
Comments
Maarten Kools 22-Jul-13 10:46am    
Perhaps this thread can help you: http://software.intel.com/en-us/forums/topic/364924

Just from the stack trace alone it's impossible to tell what's going on.
Joezer BH 22-Jul-13 11:02am    
Some more info would help Robert ;)
Do you have the source code, can you debug?
Sergey Alexandrovich Kryukov 22-Jul-13 11:19am    
Call stack without your code sample? Hm... How do you think one can use it? Others sends code without exception information. Who is going to understand that both are needed? :-)
—SA
Robert.phe 23-Jul-13 7:33am    
I did not post any code because it is a huge one. But I found that if I start without debugging no exception is thrown, so for the moment it works for me. Thanks a lot for the help.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900