I recently updated my gadgets to this style
- LAYOUT_AddChild, Objects[GAD_DETAILS1]=IIntuition->NewObject(ButtonClass,NULL,
- LAYOUT_AddChild, Objects[GAD_DETAILS1]=IIntuition->NewObject(NULL,"button.gadget",
The window opens just fine the first time.
When I close the window (all objects freed) and reopen it, when creating the gadgets it now crashes at any gadget that has a list attached to it: Choosers, ClickTab, ListBrowser.
It is like the gadget class is freeing my list so when I remake the gadget the list is invalid so it crashes. If I comment out the line for the list, it does not crash.
So, is the gadget class now freeing my lists? It didn't before. I don't want it to. The lists are static.