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

WAD FILEWRITE using SMOPEN

Discussion in 'Support' started by samintz, May 17, 2012.

  1. samintz

    samintz Scott Mintz

    Joined:
    May 20, 2008
    Messages:
    1,187
    Likes Received:
    11
    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.
     
  2. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,855
    Likes Received:
    83
    I don't know that inventing an imaginary feature and then complaining it doesn't work quite rises to the level of "bug", but I'll make sure that @FILEWRITE returns an error when used with @SMOPEN.
     

Share This Page