...or am i not reading the manual correctly?
ive been mucking around, setting up BOOPSI gadgets
i adjusted a program that worked fine, to make it a bit more efficient, and the new one would cause Intuition to freeze, or the gadgets would take a long time to render, and some would not render at all - i thought my code was fine
then i compared my code to the old code and noticed that basically the only difference between them was that the GA_Previous was pointing to the gadget currently being made using NewObject() ! this should not be, at least i think, strangly it works, and pointing it to the previous gadget only crashes the machine
basically i have an array of gadget pointers:
struct Gadget *mygads[32];
then i basically do this kind of thing:
mygads[0]=(struct Gadget *)NewObject(NULL,"buttongclass",
,GA_Previous,mygads[0],TAG_DONE);
mygads[1]=(struct Gadget *)NewObject(NULL,"buttongclass",,GA_Previous,mygads[1],TAG_DONE);
that works! :-o
but [1] should point to
is the compiler right? or should i be getting some more sleep :-?