[Qgis-developer] segmentation fault in plugin using zoom tool

Tim Sutton tim at linfiniti.com
Thu Oct 5 08:19:00 EDT 2006


Hi

8<---------------snip---------------------


> if I recall correctly, you shouldn't store map tool because the tool
> is owned by map canvas and the old tool gets always deleted in
> QgsMapCanvas::setMapTool.

8<-------------snip------------------------

Oh? So my tutorial is wrong?

http://blog.qgis.org/?q=node/14

I created the tools in the ctor and store them as class members. My
tutorial app works - is this just because by luck the memory used by
the pointer hasnt been overwritten? I thought delete will clear the
memory used too?

Regards

Tim

-- 
Tim Sutton

Visit http://qgis.org for a great Open Source GIS
Home Page: http://linfiniti.com
Skype: timlinux
MSN: tim_bdworld at msn.com
Yahoo: tim_bdworld at yahoo.com
Jabber: timlinux
Irc: timlinux on #qgis at freenode.net



More information about the Qgis-developer mailing list