Unter Linux, wie in meiner Sig. angegeben.
Dies hier erzeugt bei mir einen IMA bei "ProcedureReturn AllocateMemory(Size)", was mache ich falsch?
Code: Alles auswählen
Procedure.i _MemAllocWrapper(Size.l, File.s, Line.l)
Debug File+"["+Str(Line)+"]"+": Memory Allocated - Size( "+Str(Size)+" )"
ProcedureReturn AllocateMemory(Size)
EndProcedure
Procedure _MemDeallocWrapper(*address, File.s, Line.l)
Debug File+"["+Str(Line)+"]"+": Memory freed"
FreeMemory(*address)
EndProcedure
Macro AllocateMemory_(Size)
_MemAllocWrapper(Size, #PB_Compiler_File, #PB_Compiler_Line)
EndMacro
Macro FreeMemory_(address)
_MemDeallocWrapper(address, #PB_Compiler_File, #PB_Compiler_Line)
EndMacro
*mem = AllocateMemory_(1000)
FreeMemory_(*mem)