re: SetColorTableValue() error

7 views
Skip to first unread message

S.E. Mitchell

unread,
May 26, 2026, 5:20:25 AM (14 days ago) May 26
to TSEPro Support
Yes, I've had problems with SetColorTableValue myself, in the Console version.
I will investigate.
Thanks for the report!

On Tue, May 26, 2026 at 5:12 AM zhong zhao <zhao4...@gmail.com> wrote:
I just try t1.s:
proc main()
    SetColorTableValue(_BACKGROUND_, 0,0x000000 )
end
on WinXP in VMWare,Error per time when 'e32 -e t1' in cmd.
Attached tmp2.pngsnapshot.

在2026年5月26日星期二 UTC+8 10:23:42<zhong zhao> 写道:
t1.s:
proc main()
    SetColorTableValue(_BACKGROUND_, 0,0x000000 )
end
At cmd:
sc32 t1.s

e32 -e t1
e32 -e t1
e32 -e t1
... ...

about 1 time Error on 10 times OK.
Attached is snapshot when Error and OK,and zz.txt(in windbg call-stack info when Error),e32.lst,e32.c(Comment //~call-stack 0d,0c,...,01,00,-1  at every line end) that is helpfully for track call-chain.tmp1.png
tmp.png
I guess the Error because multi-threads read/write one memory or other shared-resource conflicts
在2026年5月25日星期一 UTC+8 20:33:55<Carlo Hogeveen> 写道:

I went at the problem from another angle.
Why would "e32 -ecmplies" plus <Escape>s abort, but not "e32 -ecmplies" plus <Escape>s?
One difference is that GUI TSE has a font and Console and Linux TSE do not.
Quick and dirty (!):
I removed saving and restoring the font from state.s.
Now "e32 -ecmplies" plus <Escape>s no longer aborts.
The same improved happens when testing this with Sammy's test macro.
https://ecarlo.nl/tse/DemosAndTests.html#state

Carlo



--

---
You received this message because you are subscribed to the Google Groups "SemWare TSE Pro text editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to semware+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/semware/3d12493f-b699-4d0a-9fb6-3df702c440f4n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages