[omniORB] memory fault with from_char

Sveta Shasharina sveta@txcorp.com
Sat Jun 1 05:22:00 2002


Aha!  This explains why the code worked in my client's main...

Sveta

-----Original Message-----
From: omniorb-list-admin@realvnc.com
[mailto:omniorb-list-admin@realvnc.com] On Behalf Of Duncan Grisby
Sent: Friday, May 31, 2002 4:11 PM
To: omniorb-list@realvnc.com
Subject: Re: [omniORB] memory fault with from_char 

On Friday 31 May, bjorn rohde jensen wrote:

> I believe pd_ncs_c is supposed to point to some agent
> to perform a native code set marshaling of a char,
> unfortunately it happens to be a null pointer with you
> demo code.

You must call ORB_init() before doing anything with Anys that involves
chars or wchars. The CORBA spec says that you can't rely on being able
to do anything CORBA related until you have called ORB_init().

Cheers,

Duncan.

-- 
 -- Duncan Grisby         --
  -- duncan@grisby.org     --
   -- http://www.grisby.org --
_______________________________________________
omniORB-list mailing list
omniORB-list@realvnc.com
http://www.realvnc.com/mailman/listinfo/omniorb-list