Well here's my problem... My program(and debugger) will randomly crash at this line:
Code: Select all
Procedure CompileJMP(Address.l,ToAddress.l)
Protected Buffer.l
If Address
Buffer=AllocateMemory(5)
;/do stuff
FreeMemory(Buffer);-<<<<<<<CRASHES HERE>>>>>>>
EndIf
ProcedureReturn 5
EndProcedure
I know that my Buffer is valid because of debugging... I simply can't figure out why it won't allow me to free it... Is this a PB bug? Are there any ways to avoid this crash? OnError hasn't been able to help me here either



