| PureBasic Forum http://forums.purebasic.com/english/ |
|
| hack >64k strings is fixed... http://forums.purebasic.com/english/viewtopic.php?f=12&t=13271 |
Page 1 of 1 |
| Author: | DEU.exe [ Thu Dec 02, 2004 6:06 pm ] |
| Post subject: | hack >64k strings is fixed... |
See this topic: http://forums.purebasic.com/english/viewtopic.php?t=9194 After update http://www.purebasic.com/update/ from November 30th, the 64k limit is gone! ReplaceString, RemoveString is working. Code: Procedure SetStringManipulationBufferSize(Bytes)
PBStringBase.l = 0 PBMemoryBase.l = 0 !MOV eax, dword [PB_StringBase] !MOV [esp+4],eax !MOV eax, dword [PB_MemoryBase] !MOV [esp+8],eax HeapReAlloc_(PBMemoryBase, #GMEM_ZEROINIT, PBStringBase, Bytes) !MOV dword [_PB_StringBase],eax EndProcedure ; Set the buffer size for all strings to 1 MB. SetStringManipulationBufferSize(1048576) A$ = Space(1000000)+"test" ; NO MORE CRASH 1 - ReplaceString() A$ = ReplaceString(A$,"test","pure") Debug right(a$,4) ; NO MORE CRASH 2 - RemoveString() A$ = RemoveString(A$,"pu") Debug Right(A$,2) Debug Len (A$) |
|
| Author: | PB [ Thu Dec 02, 2004 7:45 pm ] |
| Post subject: | Re: hack >64k strings is fixed... |
Good news! Thanks for letting us know. |
|
| Author: | gnozal [ Fri Dec 03, 2004 9:28 am ] |
| Post subject: | |
Very good news, thanks |
|
| Page 1 of 1 | All times are UTC + 1 hour |
| Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |
|