[omniORB] Visual C++, assertion when linking with omniORB303_
rtd but NOT with omniORB3d.lib ?
Guy Trudel
gtrudel@mediatrix.com
Thu, 28 Feb 2002 11:18:18 -0500
You can look at
http://www.uk.research.att.com/cgi-bin/omni-wiki/moin.cgi/FrequentlyAske=
dQue
stions#line61
or using MFC (or C runtime library) in static library with OmniOrb in
dynamic library.
Guy
> -----Original Message-----
> From: Tobias Eriksson [mailto:tobias.eriksson@comopt.com]
> Sent: Thursday, February 28, 2002 10:35 AM
> To: omniorb-list@uk.research.att.com
> Subject: [omniORB] Visual C++, assertion when linking with
> omniORB303_rtd but NOT with omniORB3d.lib ?
>=20
>=20
> A method call to a corba object like:
> void printMessage(in string msg);
> (that is implementes like: inline void printMessage(const
> char* msg){};)
> results in:
> =20
> Assertion Failed!
> _CrtValidHeapPointer(pUserData)
> =20
> when deallocating a CORBA::String_var (This error is caused=20
> even if the
> const char* msg is not used).
> =20
> Libraries linked:
> omniDynamic303_rtd.lib omnithread2_rtd.lib omniORB303_rtd
> =20
> But it does work if we link with the static version of
> omniORB303_rtd.lib (that is omniORB3d.lib)
> Regards
> Tobias
> =20
> =20
> Tobias Eriksson
> ComOpt AB
> Michael L=F6fmans gata 6
> 254 38 Helsingborg, Sweden
> Direct: +46 42 389918
> Phone: +46 42 389900
> e-mail: Tobias.Eriksson@comopt.com=20
<mailto:Tobias.Eriksson@comopt.com>=20
=20