Mysterious errors, something in filax code seems to be wrong or the cooperation between Blitzmax and MS Windows is the problem:
If I write ClipboardWrite("TEST") ONE time in source code then I can use ClipboardRead() as many times as desired.
But if I write earlier ClipboardWrite("TEST") (exactly) 4 times (simulating the user copying the text several times into clipboard) and then call ClipboardRead() several times, I got after some times "Unhandled memory exception error" in the line: cbd=GetClipBoardData(CF_TEXT).
And now if I use in the beginning ClipboardRead("TEST") 5 (!) times I got "Unhandled memory exception error" in line: DrawText "< "+txt+" >",100,100 even before I press any key, just directly after BM finished compiling !
I am working with BM 1.16 and MS Windows XP Version 5.1 Service Pack 2.
If I write ClipboardWrite("TEST") ONE time in source code then I can use ClipboardRead() as many times as desired.
But if I write earlier ClipboardWrite("TEST") (exactly) 4 times (simulating the user copying the text several times into clipboard) and then call ClipboardRead() several times, I got after some times "Unhandled memory exception error" in the line: cbd=GetClipBoardData(CF_TEXT).
And now if I use in the beginning ClipboardRead("TEST") 5 (!) times I got "Unhandled memory exception error" in line: DrawText "< "+txt+" >",100,100 even before I press any key, just directly after BM finished compiling !
I am working with BM 1.16 and MS Windows XP Version 5.1 Service Pack 2.