Stack Overflow. Can occur during errant recursion or when a function creates a particular large array on the stack
Quelq'un connait-il la solution à ce problême ou une solution analogue ?
Code : Tout sélectionner
Procedure ManipulationBufferSize(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
OnErrorGoto(?fin)
ManipulationBufferSize(1084576)
calldebugger
toto.s= "BONJOUR"+space(500000)+"XY"
toto= ReplaceString(toto,"BO","AC",1,1)
Debug Left(toto,8)
Fin:
Debug GetErrorDescription()