<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>Message</TITLE>
<META content="MSHTML 6.00.2800.1106" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=667575907-04122003><FONT face="MS Pゴシック" color=#0000ff
size=2>hi,</FONT></SPAN></DIV>
<DIV><SPAN class=667575907-04122003> <FONT face="MS Pゴシック"
color=#0000ff size=2>Just make sure that your project is compiled with /MDd for
debug and /MD for release.</FONT></SPAN></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> Chris Peat
[mailto:chris.peat@heavens-above.com]<BR><B>Sent:</B> Wednesday, December 03,
2003 10:22 PM<BR><B>To:</B>
omniorb-list@omniorb-support.com<BR><B>Subject:</B> [omniORB] Invalid heap
pointer assertion when string destructor called<BR><BR></FONT></DIV>
<DIV><SPAN class=720333716-03122003><FONT face=Arial size=2>We are having a
problem with a DLL using omniORB 4.0.3 under Windows XP. We have a server
object which makes a callback to our client and passes a string as part of a
variant-like union to the callback function. If the string field is not
used and the integer field is filled instead, there is no problem, but when a
string is passed, we always get a client debug assertion in DBGHEAP.C
(invalid heap pointer) when the callback function exits (and presumably the
union is destructed). Even if we do nothing with the returned union the error
still occurs.</FONT></SPAN></DIV>
<DIV><SPAN class=720333716-03122003><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=720333716-03122003><FONT face=Arial size=2>The strange thing
is - when we ran the same code in a compiled executable it worked perfectly.
Are there any special settings we need to make for compiling into a DLL ? We
are using Microsoft VC6 (VC .NET caused too many other
problems).</FONT></SPAN></DIV>
<DIV><SPAN class=720333716-03122003><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=720333716-03122003><FONT face=Arial size=2>We need to use a
DLL so we can export function to be used by a VB.NET
program.</FONT></SPAN></DIV>
<DIV><SPAN class=720333716-03122003><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=720333716-03122003><FONT face=Arial size=2>Many thanks in
advance,</FONT></SPAN></DIV>
<DIV><SPAN class=720333716-03122003><FONT face=Arial
size=2>Chris</FONT></SPAN></DIV></BLOCKQUOTE></BODY></HTML>