only posting limited code is really annoying - hiding context doesnt help!
how are Class1 'new'd ? do they have parents? If they have a parent, you should not 'delete' it.
where is this
? what class? what function?Qt Code:
for(int i=0; i< list.count(); i++) { Class1* t = (Class1*)list.at(i); t->stop(); delete t; }To copy to clipboard, switch view to plain text mode
Why does class1 control the others' scope when it seems like it should be the most independant class?
Have you used the dubugger? I'm sure it gave you more information than 'crash'. Why didnt you include that here?
Bookmarks