Re: Problem with copying text to the Windows clipboard
- Posted by RobertS Mar 21, 2009
- 1081 views
Yes, I have used -con
This is an example of getting a wrong result:
copyall 27 1.28 * = 34.56 30 % = 10.368 6 1.28 * 2 rd = 7.68 34.56 10.37 - 7.68 + = 48.38 (this is wrong) 34.56 10.37 - 7.68 + = 31.87 (the same calculation, now it is correct) and now some random input, until it crashes: 1 rd 61.28 + 61.28 - 173.27 28.999 * 61.28 - 2 rd 34.56 10.37 - 7.68 + 235.78 246.77 31.004 33.889 sum 52328.22 7474 + 22 - sqrt 2 rd 30 % 27 1.28 * 30 % 6 1.28 * 2 rd 34.56 10.37 - 7.68 + and now the crash: C:\EUPHORIA\include\get.e:135 in function get_number() A machine-level exception occurred during execution of this statement <no-name> = 1 <no-name> = <no value> <no-name> = 3 <no-name> = <no value> <no-name> = 7.6 <no-name> = 100'd' <no-name> = <no value> <no-name> = <no value> ... called from C:\EUPHORIA\include\get.e:240 in function Get() <no-name> = <no value> <no-name> = <no value> ... called from C:\EUPHORIA\include\get.e:302 in function value() <no-name> = {55'7',46'.',54'6',56'8',57'9'} ... called from .\hy-lib.e:280 in function isindeednumber() <no-name> = {55'7',46'.',54'6',56'8'} <no-name> = {0,7.68} <no-name> = 7.68 ... called from .\hy-calc.e:12 in procedure makenumeric() <no-name> = {55'7',46'.',54'6',56'8'} <no-name> = {0,7.68} <no-name> = <no value> <no-name> = 4 <no-name> = <no value> <no-name> = <no value> ... called from hy.exw:108 in procedure processline() <no-name> = <no value> <no-name> = 0 <no-name> = <no value> ... called from hy.exw:1
I was wrong in one regard: Meanwhile I've experienced a crash with running it from the interpreter, too.
BTW, I use a shortened and slightly modified version of conclip, but I've tested it with the original, with the same result.
I'm still open to the possibility that it can be a logical bug in my program after all, of course.
So, my main question: is it indeed conceivable, that the clipboard routine corrupts data in memory? And is there a way to find out whether it does?
Thank you for all your efforts!
Robert