[omniORB] Echo example 2 with visual studio express 2008
Martin Trappel
0xCDCDCDCD at gmx.at
Thu Oct 16 13:23:56 BST 2008
Bart Vanherck wrote:
> 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)
>
Actually your program does _not_ crash, the memory-alloc/dealloc
validation that is in place when you compile debug just tells you that
there's something wrong. Probably you have overwritten some memory, but
on the other, since you're using the examples, it may be that there is
some mismatch btw. some runtime libraries omniORB links to and the ones
you're compiling against.
> 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.
>
Are you using the omniORB-4.1.3-x86_win32-vs9.zip package ?
br,
Martin
More information about the omniORB-list
mailing list