[omniORB] Problems with String_var

Priya Rathi priyar@ascom-odf.com
Mon, 6 Aug 2001 16:07:47 +0200


Hi ,

May be ur project settings is wrong  .
u may be using both the debug & non-debug versions which normally lead to
"_BLOCK_TYPE_IS_VALID(pHead->nBlockUse)" .

:-)
Priya
----- Original Message -----
From: <jjeschin@phoenixcontact.com>
To: <omniorb-list@uk.research.att.com>
Sent: Monday, August 06, 2001 2:01 PM
Subject: [omniORB] Problems with String_var


> I am not familiar with CORBA and try to write my first server application
under
> WinNT (VC++6.0). I try to pass a string from the client to the server.
> Client Code:
>   ...
>   CORBA::String_var src = (const char*)"/IP=149.208.19.219";
>   CORBA::Long hInst;
>
>   ret = IPFBref->RegisterIPTime(hInst, src);
>   ...
>
> Server Code:
> HRESULT IPFBORBServer_i::RegisterIPTime(CORBA::Long& hFBInst, const char*
> strPartner)
> {
>     printf("RegisterIPTime()\n");
>     hFBInst = 0;
>     return 0;
> }
>
> When the string variable on the server side goes out of scope and the
delete
> operator is called I get always a debug assertion:
> "_BLOCK_TYPE_IS_VALID(pHead->nBlockUse)".
> What's my mistake?
>
>