- Release plans recap for the road to QGIS 1.0
- New version of eVis
- Contour Lines in Qgis
- QGIS and Google Summer of Code
- Quantum GIS Graduates OSGeo Incubation
- Paolo Cavallini Named to QGIS Project Steering Committee
- Nominations for QGIS PSC Open
- Capturing map coordinates in a stand alone app...
- Tutorial 7 - Creating spatial datasets with the QGIS API
- Html Image Plugin 0.2
Application cleanup
Submitted by Tim Sutton on Thu, 2006-09-07 12:49.
Hi
Yes normally one should clean up afterwards, but in this case where the application has no classes only a simple main() method, removing layers before the main Qt event loop is called will probably cause nothing to be displayed? In the case where it implemented in a class with a destructor it would make more sense. I suppose I could do this after the exec call and will update the example accordingly.
I agree it is better to allocate objects on the stack rather than the heap where possible so memory management is automatic.
Regards
Tim
»

Recent comments
3 days 13 hours ago
1 week 23 hours ago
1 week 1 day ago
5 weeks 21 hours ago
5 weeks 2 days ago
5 weeks 5 days ago
6 weeks 16 hours ago
8 weeks 3 days ago
10 weeks 1 day ago
11 weeks 1 day ago