WAD FILEWRITE using SMOPEN

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

samintz

Scott Mintz
May 20, 2008
1,204
11
Solon, OH, USA
#1
I was wondering if I could implement a pseudo-clipboard using the new shared memory routines and tried to issue a @FILEWRITE using the handle returned from @SMOPEN.

First, the @filewrite returned the number of chars written, indicating that it had succeeded. Second, I used @SMPEEK to dump out the contents of my shared memory and the string had not been written there.

I would expect that either the @filewrite fails given that I passed in a handle that was not created from @fileopen, or that the @filewrite would have written to the shared memory.