[omniORB] How to assign a wchar_t array?

Uli Syber uli.syber@schraml.de
Thu Dec 5 07:23:00 2002


Hello,

sorry I didnīt get ahead with my problem. Can somebody tell my how to use the wchar_t array correctly?
I looked at *.hh but didinīt find a method like StringList.add or something like this.

//here again my sources:

//IDL interface:

module Example
{
	typedef sequence<wstring> StringList;
	interface Echo {
  		StringList echoString();
	};
};

//sourcecode
void Echo_i::echoString(Example::StringList_out idList)
{
	int i=0;
	int length;
		

	wchar_t** List=getIDList(&length);	//getIDList returned "return((wchar_t**)aArray);" with the length "length"
	
	for(i;i<length;i++)
	{			
		
		*(idList+i)=(wchar_t)*(List+i);		
		
		//idList[i]=(wchar_t)*(List+i); didnīt work

		wprintf(L"myList: %s\n",*(List+i));
	}	
	CoTaskMemFree(List);
	
}

//error message:
omniORB: Assertion failed.  This indicates a bug in the application using
omniORB, or maybe in omniORB itself. e.g. using the ORB after it has
been shut down.
file: c:\corba\omniorb-4.0.0\include\omniorb4\calldescriptor.h
line: 126
info: !pd_current


with greetings,
Uli