View Full Version : Exception Debug: Error

May 11, 2010, 13:33:23
Dear Sir,
I use thread to get signal from the IO board. My situation is to Start and Stop Live based on signal...

Time difference between Starting and Stopping live is only few seconds..

I call stopLive & stopLive in side the thread.. in this case i got an Exception Debug error..

I attached my codeing & error for your referance.. kindly give me the solution..

( i removed IC suppoting dll's & license key)

Thanks in advance

Stefan Geissler
May 12, 2010, 09:46:50
Hello Selvanathan,

I did not found the call to DShowLib::InitLibrary() in your sample project. If this is missing, you will receive the mentioned error message.

I suggest to call CoInitializes in your side thread. This is missing, thus you receive the error message. This is the simple way.

Better is it, if you call from your side thread a function in the main thread, that starts and stops the message. I suggest to use PostMessage for this.