jeudi 27 octobre 2016

Application crash on close

Given the following:

class MyClass {
    Class1 class1;
    Class2 class2;
    ClassX classX(Class1 *class1);
    ClassY classY(Class1 *class1);
    ClassZ classZ(Class1 *class1);
};

Is it dangerous to pass a pointer to multiple classes, like ClassX classX(Class1 *class1)?

My application crashes on close, app.exe exited with code 255. Is there a easy way to scape this crash on close issue? I guess this is kind of bad smell for wrong design. Let's say I don't have time to review and correct the design right now...

Aucun commentaire:

Enregistrer un commentaire