Lots of warnings during Monteverdi interactions
Mantis Issue 168, reported by mgrizonnet, assigned to jmalik, created: 2010-05-31
Warning which appears when we open/close modules:
WARNING: In /Users/manuel/local/src/OTB/trunk/OTB/Utilities/ITK/Code/Common/itkLightObject.cxx, line 277 LightObject (0x19f059f8): Trying to delete object with non-zero reference count.
1275356124 - christopSee my email on May 22nd 2010: Wrapping The problem could be similar:
- launch a debug version of Monteverdi in gdb
- breakpoint at itkLightObject.cxx:277
- run
- backtrace on the breakpoint
- look at the object that is supposed to be freed
- check if it has public New() AND constructor
if yes, there is something wrong.
1276246474 - julienThis is due to circular SmartPointer reference : p1 -> p2 -> p3-> p1, introduced by our MVC modelisation. One of the pointer should be replaced by a WeakPointer.
We need to check every MVC module and introduce the weak pointer.
1276274238 - christopDoes the removal of the pointer to the model in the view solve the issue? Where is the circular reference? (as noted before, this is the sign of a bad design, the weak pointer is only a quick fix)
1285079771 - julienmfixed since previous release
1285122879 - christopI still have some errors when closing Monteverdi that are probably related:
*** glibc detected *** mont