[omniORB] Debug Assertion Failed although compiled with *.rtd.lib and run the Debug.exe?

Uli Syber uli.syber@schraml.de
Mon Dec 9 11:12:02 2002


Hi,

I use omniORB 4.0.0, Win 2000 and VC++ 6.0:
My project settings are:

Preprocessor:	__WIN32__,__x86__,_WIN32_WINNT=0x0400,__NT__,__OSVERSION__=4
Input - Library: omniORB400_rtd.lib omniDynamic400_rtd.lib omnithread30_rtd.lib ws2_32.lib mswsock.lib 
I´m compiling and running the *.exe in debug mode.
On the one side I use omniORB-4.0.0 as server and on the other side Java j2sdk1.4 (with POA instead of ImplBase (1.3)) as client.

void Echo_i::echoString(Example::StringList_out idList)
{			
	
	int len=1;	
	
	idList= new Example::StringList(len);
	idList->length(len);	
	(*idList)[0]=(L"Hello world");
	
}

//IDL interface of the server

#ifndef __ECHO_IDL__				//on the java side without these line
#define __ECHO_IDL__				//on the java side without these line


#pragma javaPackage "UK.co.orl.omniorb"	//on the java side without these line

module Example
{	
	typedef sequence<wstring> StringList;
	interface Echo {
  		void echoString(out StringList idList,out long length);
	};
};


#endif  // __ECHO_IDL__			//on the java side without these line



The message in the wstring array is correctly send form the server to the client but after that the omniORB server stops with the Assertion message.  
There is no problem when I like to invoke echoString with e.g. CORBA::Long& length instead of Example::StringList_out idList.
In the archive of the mailing list I have read a article "Troubles with wstring" (http://www.omniorb-support.com/pipermail/omniorb-list/2002-November/thread.html) but without 
a solution on it. Is this still a problem or is it a fault on my side.


with greetings,
Uli