Hi,
I am trying to save the handle acquired as follows
STAFHandlePtr handle = getHandle("MyApplication"); //uses
STAFHandle::create(applicationName, handle);
ptr->machine_handle = handle; // This line seg faults. GDB backtrace
points to:
#0 0x00002aaaaaac83ed in STAFThreadSafeDecrement () from
/usr/software/test/staf/current/lib/libSTAF.so
#1 0x000000000040672c in
STAFRefPtr<STAFHandle>::operator=(STAFRefPtr<STAFHandle> const&) ()
ptr->hammer_handle = hammer_handle; // hammer_handle is a
STAFString. This line seg faultsand GDB bt gives:
#0 0x00002aaaaaaef801 in STAFStringDestruct () from
/usr/software/test/staf/current/lib/libSTAF.so
#1 0x0000000000406b1c in STAFString::operator=(STAFString const&) ()
The struct is defined as:
struct info
21 {
22 char * machine_name;
23 char * pathToBinary;
24 char * pathToStorage;
25 char * filername;
26 STAFHandlePtr machine_handle;
27 STAFString hammer_handle;
28 };
Please help me point out the problem.
Thanks,
Hardik.
<<image001.gif>>
------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA The must-attend event for mobile developers. Connect with experts. Get tools for creating Super Apps. See the latest technologies. Sessions, hands-on labs, demos & much more. Register early & save! http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________ staf-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/staf-users
