<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1276" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=936461219-21012004>I just
solved this same problem, although I am using Visual Studio .NET 2003 (the VC++
7.1 compiler). The issue that I ran into was caused by the fact that we
were linking our code with the Multithreaded run time library, whereas omniORB
4.0.3 was linked with the Multithreaded DLL runtime library. That is,
we were linking statically, whereas omniORB was linked dynamically with the
MSVCRTL. You cannot mix versions of the RTL, because heap management is
different. </SPAN></FONT><FONT face=Arial color=#0000ff size=2><SPAN
class=936461219-21012004>Be sure your Visual Studio 6.0 setting is
correct: in the Project Settings, on the C++ property page, choose
"Category: Code Generation" and under "Run Time Library" select "Multithreaded
DLL." Once I made sure all our our DLLs were doing the same thing, we quit
seeing these debug asserts.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=936461219-21012004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=936461219-21012004>Good
luck,</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=936461219-21012004>Sandy
Scott</SPAN></FONT></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Croonen Davy
[mailto:croonen.davy@pandora.be]<BR><B>Sent:</B> Wednesday, January 21, 2004
1:57 PM<BR><B>To:</B> omniorb-list@omniorb-support.com<BR><B>Subject:</B>
[omniORB] Assertion Faults<BR><BR></FONT></DIV>
<DIV><FONT face=Arial size=2>Hi everybody,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I downloaded the pre-build omniORB-4.0.3 version
for windows. I followed the installation rules and everything went fine. I
tried manually the examples and they are fine too. Now I wanted to get some
experience by using these examples, so I set up my Visual Studio 6.0
according to the guidelines that came with omniORB-4.0.3. After compiling
everything I started the omniNames server and the serverside of example 3
(eg3_impl). When I now start the client side (eg3_clt), I get the
output:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> I said, "Hello".</FONT></DIV>
<DIV><FONT face=Arial size=2> The Echo object replied,
"Hello".</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>On the same time I also get the following two
assertion faults:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> File: dbgheap.c</FONT></DIV>
<DIV><FONT face=Arial size=2> Line: 1011</FONT></DIV>
<DIV><FONT face=Arial size=2> Expression:
_CrtIsValidHeapPointer(pUserData)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> File: dbgheap.c</FONT></DIV>
<DIV><FONT face=Arial size=2> Line: 1076</FONT></DIV>
<DIV><FONT face=Arial size=2> Expression: _pFirstBlock ==
pHead</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I'm using the debug libraries: omniORB403_rtd.lib
omniDynamic403_rtd.lib omnithread30_rtd.lib</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>(Other system info: Intel Pentium 4, 512mb RAM,
2.66GHz processor and WinXP)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Does anybody know how I can solve this problem?
For me it is very important because I want to use omniORB
for practical part of my end scription.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks in advance</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Greetz Davy</FONT></DIV></BLOCKQUOTE></BODY></HTML>