void* pointers get corrupted: D bug or misunderstanding?

Adam D. Ruppe destructionator at gmail.com
Sun Jul 28 18:39:39 UTC 2019


On Sunday, 28 July 2019 at 18:37:26 UTC, Dennis wrote:
> Can you give your exact callback function definition?

Yes, indeed. D's `long` and C's `long` are incompatible too, so 
using the wrong there is a potential for this kind of problem as 
well (the argument before the pointer is the wrong size, so then 
the pointer value is pulled from the wrong location).


More information about the Digitalmars-d mailing list