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

Fixed Share Memory Issue

Discussion in 'Support' started by cgunhouse, Mar 2, 2016.

  1. cgunhouse

    Joined:
    Dec 2, 2008
    Messages:
    209
    Likes Received:
    2
    Does anyone have an idea why the following happens:

    [49] (3377456K) c:\jpsoft\startup > SET Hndl=%@SMOPEN[32,Mem1]

    [50] (3403628K) c:\jpsoft\startup > SET RtnH=%@SMPOKE[%Hndl,0,4,579]

    [51] (3421824K) c:\jpsoft\startup > SET RtnH=%@SMPOKE[%Hndl,0,4,580]
    TCC: (Sys) The handle is invalid.
    "%@SMPOKE[576,0,4,580]"

    [52] (3564368K) c:\jpsoft\startup > SET RtnH=%@SMPOKE[%Hndl,0,4,543]
    TCC: (Sys) The handle is invalid.
    "%@SMPOKE[576,0,4,543]"

    [53] (3564156K) c:\jpsoft\startup > SET RtnH=%@SMPOKE[%Hndl,0,4,544]

    What is being changed between "[50]" and [51] is the value being put into memory and not the handle, so why am I getting a handle error? What is magic about the range 544 to 579 that it works. The range 400-403 works too.
     
  2. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,971
    Likes Received:
    30
    Can you reproduce that? I couldn't. But in my playing around, I saw similar inexplicable errors from @SMPEEK which I could not reproduce later.
     
  3. cgunhouse

    Joined:
    Dec 2, 2008
    Messages:
    209
    Likes Received:
    2
    Yes, I even rebooted.

    SET Hndl=%@SMOPEN[32,Mem1]
    SET RtnH=%@SMPOKE[%Hndl,0,4,579]
    SET RtnH=%@SMPOKE[%Hndl,0,4,580]
    SET RtnH=%@SMPOKE[%Hndl,0,4,543]
    SET RtnH=%@SMPOKE[%Hndl,0,4,544]

    Produce the same thing every time.

    All my share memory .BTM, functions, and aliases that use shared memory are now failing.
     
  4. cgunhouse

    Joined:
    Dec 2, 2008
    Messages:
    209
    Likes Received:
    2
    It works fine under 19.02.38 x64

    Its a good thing I kept a copy of 19.02.38 around.
     
  5. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,870
    Likes Received:
    83
  6. cgunhouse

    Joined:
    Dec 2, 2008
    Messages:
    209
    Likes Received:
    2
    That fixed my Shared Memory issues, Thanks Rex.
     

Share This Page