[omniORB] How to assign a wchar_t array?
Uli Syber
uli.syber@schraml.de
Wed Dec 4 12:56:01 2002
Hi,
(I´m using omniORB4.0, on Win 2000, environment: VC++6.0)
I´m trying to enhance the echoString example with a assignment of a wchar_t array. I get the 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
I think the problem is on my side but I don´t known how to test whether "*(idList+i)=(wchar_t)*(List+i);" is a correct statement on StringList_out.
How can I assign my array to StringList_out?
//The source
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);
wprintf(L"myList: %s\n",*(List+i));
}
CoTaskMemFree(List);
}
with greetings,
Uli