[omniORB] copying strings
Joan Ramon López Gillué
jrlopez@visionadvance.com
Thu, 26 Apr 2001 20:24:54 +0200
Hi all,
I've finally managed to find out what was going on with my string_dups!
Sorry for not getting back to you sooner, but I hadn't be able to test it
until right now.
The problem is that in the project settings C++ tab I had "Debug
Multithreaded" as selected Run-time library. Everything has started behaving
normally when I've changed to "Debug Multithreaded DLL".
Sorry for the silly problem
Thanks a lot
___________________________________________
Joan Ramon López Gillué
Software Engineer - Tech. Dept.
jrlopez@visionadvance.com
-----Original Message-----
From: Joan Ramon López Gillué [mailto:jrlopez@visionadvance.com]
Sent: lunes, 23 de abril de 2001 12:27
To: Duncan Grisby
Cc: omniorb-list@uk.research.att.com
Subject: RE: [omniORB] copying strings
Duncan,
I am using: VC++6.0,
Win2000 professional and
omnIORB 3.0.3 (with no patches)
The crash occurs within string_dup, when it executes delete on the old
buffer.
Any idea of is going on?
Cheers
Joan Ramon Lopez
-----Original Message-----
From: owner-omniorb-list@uk.research.att.com
[mailto:owner-omniorb-list@uk.research.att.com]On Behalf Of Duncan
Grisby
Sent: lunes, 23 de abril de 2001 11:41
To: Joan Ramon López Gillué
Cc: omniorb-list@uk.research.att.com
Subject: Re: [omniORB] copying strings
On Sunday 22 April, =?iso-8859-1?Q?Joan_Ramon_L=F3pez_Gillu=E9?= wrote:
> Please, can anybody tell me what am I doing wrong in thye following
fragment
> of code?
>
> The problem is with copyinn nameBuf over (*name)[0].kind. If instead of
> copying nameBuf, I copy a (const char *), as in the previous line,
> everything works fine.
That code works perfectly fine for me. What exactly goes wrong for
you? What platform are you using? What version of omniORB?
Cheers,
Duncan.
--
-- Duncan Grisby \ Research Engineer --
-- AT&T Laboratories Cambridge --
-- http://www.uk.research.att.com/~dpg1 --