Article # 432, added by Geoworks, historical record
| first |
previous |
index |
next |
last |
I get a BAD_DS error in Swat.
Q. I get a BAD_DS error in Swat, and I think it's related to this code: { ... textOD = GeodeGetOptrNS( @FMVolumePathText ); @send textOD::MSG_VIS_TEXT_REPLACE_ALL_PTR( pathBuffer, LocalStringLength( pathBuffer ) ); MemFree( pathBufferHandle ); } A. The problem here is that the block you're using to send the string in is being freed before the text object gets a chance to see it. If you change the @send to an @call, the routine will work, since the call will be blocked until the text object is done with the memory block. After the text object is done, then your routine will continue with the next line of code, namely the MemFree.