On Sun, 12 Feb 2006, Alireza khalilipour wrote:

Hi all,

I want to "push" a  string into an event channel. But I faced with this
error:

"segmentatiom fault".

the code that I use to push,is:

CORBA::Any *any;

^ this line is "a bit" problematic. Either allocate Any to the any variable or at least assign NULL to it.

char *s1="HELLO";

*any<<=s1;

Obviously, you access not allocated memory location here.

Also please fix the line ``char *s1="HELLO";'', since string "HELLO" is constant string.

Cheers,
Karel
--
Karel Gardas                  [EMAIL PROTECTED]
ObjectSecurity Ltd.           http://www.objectsecurity.com
---
Need experienced, fast, reliable technical MICO support?
---> http://www.objectsecurity.com/mico_commsup_referral.html <---
---
_______________________________________________
Mico-devel mailing list
[email protected]
http://www.mico.org/mailman/listinfo/mico-devel

Reply via email to