<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>
<META content="MSHTML 6.00.2800.1141" name=GENERATOR></HEAD>
<BODY>
<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></BODY></HTML>