<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>.NET 2003 & omniOrb403 invalid heap crash</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2 FACE="Arial">Hi,</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">After updgrading our project to VS .NET 2003 using omniorb403 windows binaries, when running in debug I get an </FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">"Invalid heap pointer exception when string destructor called." in</FONT> <FONT SIZE=2 FACE="Courier New">_CrtIsValidHeapPointer</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">I have checked the archives and this seems to be normally due to incorrect libraries being used. I have checked this and believe them to be correct, as they are the same as under Visual Studio V6.0.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">The readme.win32 file states to use the following libs, however this folder does not exist, so I have assumed this should be the x86_win32 folder</FONT></P>
<P><FONT SIZE=2 FACE="Courier New"> 3. Under Linker -> General (Additional Library Directories), Enter the</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> directory where you installed the omniORB library files (this is </FONT>
<BR><FONT SIZE=2 FACE="Courier New"> <Top-Level>\lib\win-32) </FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Debug settings</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">C++ code generation = Multi-threaded Debug DLL (/MDd)</FONT>
<BR><FONT SIZE=2 FACE="Arial">Linker dependancies</FONT>
<BR><FONT SIZE=2 FACE="Arial">------------------------------</FONT>
<BR><FONT SIZE=2 FACE="Arial">ws2_32.lib</FONT>
<BR><FONT SIZE=2 FACE="Arial">mswsock.lib</FONT>
<BR><FONT SIZE=2 FACE="Arial">omniORB403_rtd.lib</FONT>
<BR><FONT SIZE=2 FACE="Arial">omniDynamic403_rtd.lib</FONT>
<BR><FONT SIZE=2 FACE="Arial">omnithread30_rtd.lib</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">If I run in release I also get the same problem unless I turn off "generate debug info" link option.</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Release settings</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">C++ code generation = Multi-threaded DLL (/MD)</FONT>
<BR><FONT SIZE=2 FACE="Arial">Linker dependancies</FONT>
<BR><FONT SIZE=2 FACE="Arial">------------------------------</FONT>
<BR><FONT SIZE=2 FACE="Arial">ws2_32.lib</FONT>
<BR><FONT SIZE=2 FACE="Arial">mswsock.lib</FONT>
<BR><FONT SIZE=2 FACE="Arial">omniORB403_rt.lib</FONT>
<BR><FONT SIZE=2 FACE="Arial">omniDynamic403_rt.lib</FONT>
<BR><FONT SIZE=2 FACE="Arial">omnithread30_rt.lib</FONT>
</P>
<BR>
<P><FONT SIZE=2 FACE="Arial">Any one else had this problem and resolved it?</FONT>
<BR><FONT SIZE=2 FACE="Arial">Are the released omnOrb binaries complied with .NET200?</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Thanks</FONT>
</P>
<BR>
<P><B><FONT SIZE=2 FACE="Arial">Siemens Traffic Controls is a division of Siemens plc. Registered No. 727817, England. </FONT></B>
<BR><B><FONT SIZE=2 FACE="Arial">Registered office: Siemens House, Oldbury, Bracknell, Berkshire, RG12 8FZ. </FONT></B>
</P>
<P><B><FONT SIZE=2 FACE="Arial">This communication contains information which is confidential and </FONT></B>
<BR><B><FONT SIZE=2 FACE="Arial">may also be privileged. It is for the exclusive use of the addressee. </FONT></B>
<BR><B><FONT SIZE=2 FACE="Arial">If you are not the addressee please note that any distribution, </FONT></B>
<BR><B><FONT SIZE=2 FACE="Arial">reproduction, copying, publication or use of this communication </FONT></B>
<BR><B><FONT SIZE=2 FACE="Arial">or the information in it is prohibited. If you have received this </FONT></B>
<BR><B><FONT SIZE=2 FACE="Arial">communication in error, please contact us immediately and also </FONT></B>
<BR><B><FONT SIZE=2 FACE="Arial">delete the communication from your computer. </FONT></B>
</P>
<BR>
</BODY>
</HTML>