[omniORB] Problems with String_var
jjeschin@phoenixcontact.com
jjeschin@phoenixcontact.com
Mon, 6 Aug 2001 14:01:02 +0200
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?