void* pointers get corrupted: D bug or misunderstanding?
federico at santamorena.me
Mon Jul 29 08:17:34 UTC 2019
On Monday, 29 July 2019 at 01:46:27 UTC, Exil wrote:
> On Sunday, 28 July 2019 at 18:32:24 UTC, Federico Santamorena
> Where is the "D object" allocated? Haven't seen anyone mention
> it, but the way the GC works, it has to know about the memory
> it needs to scan to look for an object.
> So if you pass an object allocated with the GC then pass it to
> GTK, the GC isn't going to know about the memory GTK has
> allocate. The kind of problem can happen that you mention, it
> deallocates the object because it doesn't think it is used
I even tried GC.disable().
The void* pointer still gets corrupted
More information about the Digitalmars-d