[Gambas-user] Crash with Free()

Benoît Minisini gambas at ...1...
Thu Jan 13 19:55:27 CET 2011


> Hi!
> I was adding some test for pointer arithmetic when noticing this.
> GambasTester will pass, but when you close main form, signal 11 will rise.
> Commenting out Free(pp) from mTest: line 1070, will prevent crash.
> 
> Gambas 3 rev 3452 @ Ubuntu 10.10 64bit
> 
> Jussi

You are calling Free(pp) whereas pp is not the pointer returned by Alloc() 
anymore. So you get a crash...

-- 
Benoît Minisini




More information about the User mailing list