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

Uli Syber uli.syber@schraml.de
Thu Dec 12 15:14:02 2002


Hi Kendall,

thank you very much for your help. 
When I test with CORBA::wstring_dup() then the compiler runs into GIOP_S.cc and stops there. Therefore I didin´t apply your hint with 
this method.
What do mean by
>... string allocation functions are not inlined..


greetings,
Uli 

> -----Ursprüngliche Nachricht-----
> Von: baileyk@schneider.com
> Gesendet: Donnerstag, 12. Dezember 2002 15:19
> Betreff: Re: AW: Re: [omniORB] Debug Assertion Failed although compiled with *.rtd.lib and run the Debug.exe?
> 
> 
> I would try two things:
> 
> 1. Make an explicit call to CORBA::wstring_dup() rather than rely on the
> implicit call that the const* should trigger.
> 
> 2. If that doesn't work (and I doubt it will), then modify omniORB in such
> a way that the string allocation functions are not inlined and then
> recompile omniORB and your application.
> 
> If number 2 works, then there is still a mix of different runtime libraries
> in your process.  You would need to do a careful link dependency analysis
> to find the problem.
> 
> Kendall
> 
> 
> 
> 
>                                                                                                                              
>                     "Uli Syber"                                                                                              
>                     <uli.syber@schraml.de>             To:     "Duncan Grisby" <duncan@grisby.org>                           
>                     Sent by:                           cc:     omniorb-list@omniorb-support.com                              
>                     omniorb-list-admin@omniorb-s       Fax to:                                                               
>                     upport.com                         Subject:     AW: Re: [omniORB] Debug Assertion Failed although        
>                                                         compiled with *.rtd.lib and run the Debug.exe?                       
>                                                                                                                              
>                     12/12/2002 07:05 AM                                                                                      
>                                                                                                                              
>                                                                                                                              
> 
> 
> 
> 
> Hi Duncan,
> 
> thanks a lot for your help. When I try to fill the wstring sequence with a
> wstring from an array and send it, the Assertion appears again.
> 
> void Echo_i::echoString(Example::StringList_out idList,CORBA::Long& length)
> {
>            wchar_t** list;
>            list=getIDList(&len);          //return((wchar_t**)idList);
> 
>            idList = new Example::StringList(len);
>            idList->length(len);
>            length=len;
> 
>            for(i=0;i<len;i++)
>            {
> 
>                           (*idList)[i] =(const CORBA::WChar*)list[i];
> 
>                      CoTaskMemFree(list[i]);
>                      //wprintf(L"myList: %s\n",*(List+i));
>            }
> }
> 
> 
> with greetings,
> Uli
> 
> 
> 
> 
> _______________________________________________
> omniORB-list mailing list
> omniORB-list@omniorb-support.com
> http://www.omniorb-support.com/mailman/listinfo/omniorb-list