From my code I get the error next after the destructor statement. When I press F10 from the statement, I get the segmentation fault message.delete ui;
From my code I get the error next after the destructor statement. When I press F10 from the statement, I get the segmentation fault message.delete ui;
you probably forgot to do ui = new <YourUIWidget>;
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
Here I am attaching the image showing the debugger output. I can't see the option to copy the output. And I see the messagein the console after stopping the debugger.Lowest section in C:\Windows\system32\normaliz.dll is .text at 00401000
So the crash happens when you are closing the application? Does the program work correctly until then?
yes exactly. the crash happens only when closing the app. Until then every thing works fine. Before It was running fine but when I added the above function my app started crashing. So I then removed the function but still the crash happens when closing the application.
My guess is that you have a double delete somewhere. You are deleting some object explicitly and then MainWindow destructor deletes it again.
Bookmarks