I have defined a global buffer in one of the files.. Now I want to
know what is in it. How do I do that ?? Sure, I can get a pointer
into it somewhere in my code, but what about _after_ that ??
How do I peek into any global buffer/variable within swat? I know
what the code does and I know the value of LMemDereffed variable..
but something goes wrong and I really, really want to use swat to
to check what really gets into the buffer :(
I tried "print @MyBuffer", "bytes @MyBuffer", "pobj @MyBuffer"..
--jouni miettunen
File_one.goc
============
@chunk TCHAR MyBuffer[1024] = "";
File_two.goc
============
@extern chunk MyBuffer;
TCHAR *ptcBuffer,*ptcString;
...
MemLock(OptrToHandle(@MyBuffer));
ptcBuffer = (TCHAR *) LMemDeref(@MyBuffer);
strcpy(ptcBuffer,ptcString);
MemUnlock(OptrToHandle(@MyBuffer));
...