cornholio wrote:
> I recently installed 6.1 and tried to run out test system. The error
> DSPtrAndHand occured in Labview.lib and lv was shut down. I looked at
> the labview.lib files both in 6.0.2 and 6.1 and the lib file was twice
> as big in 6.0.2. I am not an expert on the system but i think that we
> have an external code that calls the function DSPtrAndHand which seems
> to be some kind of memcopy. This function seems to have disappeared in
> 6.1. We have tried to recompile with the new labview.lib and the
> linker warns that DSPtrAndHand cannot be found.
Yes, this function has disappeared in LabVIEW 6.1. I'm not sure as to
the reason and considering that it was documented in the CIN Reference
Manual in earlier versions, I was rather surprised to see
that.
However the workaround is quite simple by creating your own function to
do that particular operation:
MgErr DSPtrAndHand(UPtr p, UHandle h, int32 size)
{
MgErr err;
int32 len;
if (!h || !*h || !p || !size)
return mgArgErr;
len = DSGetHandleSize(h);
err = DSSetHandleSize(h, size + len);
if (!err)
MoveBlock(p, *h + len, size);
return noErr;
}
Rolf Kalbermatter
Rolf Kalbermatter
My Blog 
DEMO, Electronic and Mechanical Support department, room 36.LB00.390