[omniORB] Invalid heap pointer assertion when string destruct or called

Malge Nishant MNishant at quark.co.in
Thu Dec 4 13:22:03 GMT 2003


hi,
    Just make sure that your project is compiled with /MDd for debug and /MD
for release.

-----Original Message-----
From: Chris Peat [mailto:chris.peat at heavens-above.com]
Sent: Wednesday, December 03, 2003 10:22 PM
To: omniorb-list at omniorb-support.com
Subject: [omniORB] Invalid heap pointer assertion when string destructor
called


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.
 
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).
 
We need to use a DLL so we can export function to be used by a VB.NET
program.
 
Many thanks in advance,
Chris

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20031204/3c847a53/attachment.htm


More information about the omniORB-list mailing list