Srod, I'm really sorry if youre story is true

I never thought that I can write a 'virus' with the PrintN() function.
As PB said in his post there is a limit.
I made some other tests with version 4.10B2 on Win2k sp4.
With Unicode support in compiler option,
this code works :
Code: Select all
OpenConsole()
s1.s = Space(26608)
ReplaceString(s1," ","#",2)
PrintN(s1)
Input()
CloseConsole()
This one doesn't :
Code: Select all
OpenConsole()
s1.s = Space(26609)
ReplaceString(s1," ","#",2)
PrintN(s1)
Input()
CloseConsole()
26609 is the magic number
If I remove the Unicode support in compiler options the new magic number is : 53218 ( = 2 * 26609 )
It's a strange limitation in the PrintN() function.
Those tests work on Linux (PB 4.01).
I wasted about a day with a small piece of of code I'm working on. My code is very simple :
- Connect to a web server
- Send a HTTP message to retrieve a page
- Store the page in a string
- PrintN of the string on the console to verify
The page I was trying to retrieve weighted 70kb. With this strange PrintN behaviour I did not saw anything.
