Fixed Share Memory Issue

Dec 2, 2008
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.

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

[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.
May 20, 2008
Syracuse, NY, USA
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.
Dec 2, 2008
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.
Similar threads
Thread starter Title Forum Replies Date
vefatica Completion of stream names on network share? Support 2
V Network share slowness vs CMD? Support 19
T Fixed copy from share error Support 10
noahcoad @full and @truename Issue Resolving Network Share Names Support 1
vefatica Redirection and memory leak? Support 3
R WAD Strange output from "memory" command Support 1
vefatica Memory leak (?) in @SMPEEK Support 5
J TCC Out of memory with aliases and functions Support 5
J Memory leak? Support 5
G v28 Display Issue Support 7
Jay Sage Issue with CD_ENTER Alias Support 37
Jay Sage Issue with CD_LEAVE Alias Support 3
fpefpe How to? issue with % and evaluation Support 5
cgunhouse Standard User Account Issue Support 2
samintz WAD Display wrapping issue Support 5
M TCC color issue in ConEmu Support 4
samintz Timer issue Support 4
Alpengreis Documentation Minor issue in help file for view /E Support 1
samintz WAD ANSI issue Support 3
D TCSTART issue after reinstallation Support 14
A Documentation [Help file] OPTION "//" synopsis formatting issue Support 0
Chen Touboul Overtyping issue - i press the Insert key, help till press enter for new line in TCC Support 2
Y TCC and Cmder imcompatibility issue Support 7
M Another possibly strange remote registry issue Support 5
T WAD bpokestr issue Support 5
D High-DPI Scaling issue Support 1
S CMDebug 22 issue with del command Support 1
cgunhouse Foldermonitor Issue Support 7
samintz Build 38 Install issue Support 5
rps WAD Setlocal issue Support 4
Luiz Rodrigues Issue with Maven Support 1
Seven Update / install issue with take command Support 7
Fross WebDav Drive Mapping Issue Support 19
D Upgrade issue Support 3
Fross V20b8 Everything Issue Support 5
T TCC display issue Support 1
cgunhouse _logfile Issue Support 5
T Fixed Querybox issue Support 1
cgunhouse Foldermonitor with "/E" Option Issue Support 6
Fross TabComplete Argument Issue Support 1
fpefpe How to? Stange start up issue Support 1
C cosmetic issue with LIST's (I) Support 9
jbarnes1967 TC 18.00 x64 issue with lua io.popen() Support 2
D How to? Wildcards as sets - looping issue with FOR and REN Support 7
T WAD Free issue Support 6
R Fixed v17.0.54 Tab->COMSPEC Dialog Box Issue Support 2
R Minor Cosmetic Issue in Take Command Window Support 2
cgunhouse One line IFF ... Then ... Else ... EndIFF Statement issue in V17 Support 13
cgunhouse IFTP Path Issue in V17 - Fixed Support 7
S BDEBUGGER issue Support 9

Similar threads