[Qgis-developer] Broken code after upgrade to QGIS 1.4

Martin Dobias wonder.sk at gmail.com
Tue Jan 19 07:03:13 EST 2010


Hi Matthew

On Tue, Jan 19, 2010 at 5:16 AM, Matthew Denno <mgdenno at gmail.com> wrote:
> Hello List,
>
> Quick question.  The following piece of code seemed to always work
> before upgrading to 1.4, but now it seems to fail with this message:
>
> The program has unexpectedly finished.
> /home/matt/Programming/DelaunayIntersection/DelaunayIntersection
> exited with code 0
>
> Any ideas with what the cause might be?  Any help or direction would
> be greatly appreciated.

Just making sure: have you recompiled your code after upgrade to 1.4?
Is QGIS 1.4 itself working fine? (e.g. it opens a shapefile without problems)
Is that a standalone application or a plugin?
If it's an application, do you initialize QgsApplication?
Is the provider path in your code (/usr/lib/qgis) still valid?

The code itself looks fine and shouldn't be affected by upgrades.
(Except for that you create an instance of QgsVectorLayer and never
free it.)

Martin


More information about the Qgis-developer mailing list