[omniORB] Invalid heap pointer assertion when string destructorcalled

Ulf Stoermer ulf at emi.yamaha.co.jp
Thu Dec 4 09:36:51 GMT 2003


Hi Chris,

when compiling your own project you have to link it against
the msvcrt.lib respectively msvcrtd.lib
If you need more specific help, you can mail me directly.

Cheers

Ulf


-----Original Message-----
From: omniorb-list-bounces at omniorb-support.com [mailto:omniorb-list-bounces at omniorb-support.com]On
Behalf Of Chris Peat
Sent: Thursday, 4 December 2003 1:52 AM
To: omniorb-list at omniorb-support.com
Subject: [omniORB] Invalid heap pointer assertion when string destructorcalled


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




More information about the omniORB-list mailing list