Hi,
I'm developing an application using Qt 4.3.0 and Visual Studio .NET 2003.
Anyone knows what is an "Debug Assertion Failed"?
Thanks,
Hi,
I'm developing an application using Qt 4.3.0 and Visual Studio .NET 2003.
Anyone knows what is an "Debug Assertion Failed"?
Thanks,
Òscar Llarch i Galán
It could be for example that you delete something twice. May we see the call stack (Debug->Windows->Call Stack)?
J-P Nurmi
Hi,
I've found that I'm deleting a char pointer that is already deleted. Two objects have the same pointer and one deletes the data so the second one try to delete it and crash.
Is there anyway to know if the data is deleted?
Thanks,
Òscar Llarch i Galán
Hi,
Yes, I do it in the first object that deletes the data, but the second object is pointing to the erased data. I only want to know if there is a way to do it without having to tell the other object to point it to null.The common approach is to nullify pointers after delete.
I will try another approach.
Thanks,
Òscar Llarch i Galán
I'd say it's a question of design. This is what happens when dynamically allocated memory has no clear ownership.
J-P Nurmi
Bookmarks