PDA

View Full Version : Reg: Debug Library Error



sethupathy
March 3, 2011, 12:56:01
Dear Sir,

While am I execute the VC++ Source code,System shows “Debug Library “Error

If I remove source code which I written below, then it working fine but camera live is not coming

If i include this the Runtime debug library error is coming.

if( ! DShowLib::InitLibrary( "ISB3200016679" ) )
{ return FALSE;
}
struct static_init
{ static_init()
{
CoUninitialize();
OleInitialize( 0 );
};
};
#pragma init_seg( user )
static_init sys_init;


Is there any other way to avoid the issue.

Regards
Sethu

Stefan Geissler
March 3, 2011, 15:39:02
Hello,

if you call CoUninitialize, then the COM library is removed and nothing will work any more. Do you have some more information about this error?

Maybe something like this:

The errormessage "_CrtIsValidHeapPointer(pUserData)" occurs, if the application exe file is executed using the wrong DLLs. Please make sure, that the Debug exe runs with the debug DLLs and the release exe file runs with the release DLLs.

The release DLLs are located in the standard IC Imaging Control setup in the "bin" and in the "classlib\release" directory. The debug DLLs are located in the "classlib\debug" directory.

Where an application is executed ca be determined in the Project settings.

An application searches for DLLS in the directory where it is executed. If they are not found there, the search pathes of the operating system are searched for the DLLs.