[Gambas-user] Tests against pointers in Gambas3
tobias
tobiasboe1 at ...20...
Wed Jan 12 17:31:58 CET 2011
hi,
> Hi,
>
> i study the cases of pointers and i found at this page
> http://www.yolinux.com/TUTORIALS/C++MemoryCorruptionAndMemoryLeaks.html
>
> cases of program crashes from bad usage of pointers.
>
> i made a test for
> Attempting to write to memory already freed.
>
> ...
>
> in this example i free the pointer and then try to write to it.
> The result is that i can write and read normally after Free(pPointer)
>
> Is this ok?
>
i noticed the same thing some time ago with a c program. this hasn't to
be a bug in gambas... i think this is just as jussi said:
> Seems that Gambas still owns that address, but it is not "protected"
anymore
More information about the User
mailing list