Classes are reference types. You take reference of local
reference (it's address on stack). Use just cast(void*)t
Thank you!
On Monday, 18 August 2014 at 10:07:30 UTC, Remi Thebault wrote:
Hi
Starting to use GtkD TreeModel, I write an instance of an
abstract class to TreeIter.userData.
When reading back the void pointer and casting to my abstract
class leads to crash when instance is used (Task is the
abstract cl
Hi
Starting to use GtkD TreeModel, I write an instance of an
abstract class to TreeIter.userData.
When reading back the void pointer and casting to my abstract
class leads to crash when instance is used (Task is the abstract
class):
int fillIter(TreeIter iter, Task t)
{