[omniORB] copying strings

Joan Ramon López Gillué jrlopez@visionadvance.com
Mon, 23 Apr 2001 12:27:15 +0200


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 --