[omniORB] Echo example 2 with visual studio express 2008

Bart Vanherck bvanherck at maia-scientific.com
Thu Oct 16 10:32:44 BST 2008


Hello,

I have a problem with the examples. I took example eg2_ctl.cc and 
eg2_impl.cc and compiled it successfully. When I run them without debug 
information there was no problem, but with debug info,
there is a crash of the eg2_impl when the eg2_ctl executes the 
orb->destroy() command. It crashes with following message:

Debug Assertion Failed!
File: f:\dd\vctools\crt_bld\self_x86\crt\src\dbgdel.cpp Line 52
Expression: _BLOCK_TYPE_IS_VALID(pHead->nBlockUse)

Below are the flags and libs that I compile and link with to create the 
executables.

My Compile options are:
/Od /I "C:\omniorb\include" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D 
"__WIN32__" /D "__x86__" /D "_WIN32_WINNT=0x400" /D "__NT__" /D 
"__OSVERSION__=4" /D "_UNICODE" /D "UNICODE" /Gm /EHsc /RTC1 /MDd 
/Fo"Debug\\" /Fd"Debug\vc90.pdb" /W3 /nologo /c /ZI /TP /errorReport:prompt

My link options are:
/OUT:"C:\development\omniorbtest\Debug\omniorbtest.exe" /INCREMENTAL 
/NOLOGO /LIBPATH:"C:\omniorb\lib\x86_win32" /MANIFEST 
/MANIFESTFILE:"Debug\omniorbtest.exe.intermediate.manifest" 
/MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG 
/PDB:"c:\development\omniorbtest\Debug\omniorbtest.pdb" 
/SUBSYSTEM:CONSOLE /DYNAMICBASE /NXCOMPAT /MACHINE:X86 
/ERRORREPORT:PROMPT ws2_32.lib mswsock.lib advapi32.lib 
omniORB413_rtd.lib omniDynamic413_rtd.lib omnithread34_rtd.lib  
kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib 
shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib


I use Visual C++ from visual studio express 2008.

Has anyone seen this problem before?

kind regards,

Bart



More information about the omniORB-list mailing list