Apparently the problem lies in the empty pointers to mother canvas and stuff like that. MY QUESTION IS: how do I define an array of TPads without using the empty constructor? Or is there another way to avoid these crashes?
I will investigate this problem. For sure a missing protection.
But here I have a remark.
In general, you should not create your TPads in the stack. When leaving your function, they will be automatically deleted,
probably not what you want.
use new TPad instead and make an array
of pointers TPad *pads[10];