STAF itself passes STAFStrings for one function to another all the time. 
See the STAF source code for many examples.

Also, the STAF Service Developer's Guide provides information on how to 
write a STAF service in C++ and provides examples of marshalling data at 
http://staf.sourceforge.net/current/stafsdg.html#Header_Writing_C++_Service
.

--------------------------------------------------------------
Sharon Lucas
IBM Austin,   luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313




From:   "Dedhia, Hardik" <hardik.ded...@netapp.com>
To:     <staf-users@lists.sourceforge.net>
Date:   06/23/2011 10:46 AM
Subject:        [staf-users] STAFString assignment



Hi everyone,
 
I wrote a function which reads the result, un marshals it and returns the 
message field as a STAFString.
 
But, it caused a segmentation fault – caused by a memcpy violation.
 
Could you suggest a safe method to pass STAFStrings from one function to 
another?
 
Thanks,
 
Hardik.
------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with 
vRanger.
Installation's a snap, and flexible recovery options mean your data is 
safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users


------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to