Re: [Qgis-developer] Plugin Development on Windows

2011-05-18 Thread Federico J . Fernández
Hi Federico, don't now that much about the cpp plugins, but is it really a cpp plugin you need? What are your plans with the plugin? Because it would be easier to make it a Python plugin I think (no fuss with compiling etc etc). But if you really have to use cpp: try to ping somebody on

[Qgis-developer] Plugin Development on Windows

2011-05-17 Thread Federico J . Fernández
Hi All, I'm trying to develop a plugin for QGIS on Windows 7. I'm using Visual Studio 2010 to compile. I used the python script to generate the initial skeleton of the plugin. I can compile it, and obtain the corresponding dynamic link library. The problem is that when I put it into the plugins/

[Qgis-developer] Memory problems in QGIS Application

2011-02-11 Thread Federico J . Fernández
I've been experiencing memory problems with a QGIS Application that I'm doing with the QGIS API. I tried to make the minimal application that seg faults, and I found this: INT WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR lpCmdLine, INT nCmdShow) { // Start the Application

Re: [Qgis-developer] Problems using QgsVectorLayer::selectedFeatures()

2011-02-07 Thread Federico J . Fernández
I'm confused - you don't have to allocate any pointers for the list. The QList class uses implicit sharing of data (like many other qt classes), so the list can be passed by value very cheaply. Please paste the code of the whole method if it's not too long and indicate on what line the

Re: [Qgis-developer] Problems using QgsVectorLayer::selectedFeatures()

2011-02-03 Thread Federico J . Fernández
Thanks Martin for your answer. I'll try to explain better. I don't understand what's the problem. What do you mean by an abort from the compiler - does it mean that your code doesn't compile? Or is your application aborted at that point? I tried to mean that my application aborted at that

[Qgis-developer] Problems using QgsVectorLayer::selectedFeatures()

2011-01-31 Thread Federico J . Fernández
Hi List, I'm developing an application using the QGIS API. At this point, I need to replicate the QGIS functionality for merging features in a given layer. I copied some parts of the code from qgisapp.cpp, but I have some problems. In short, I receive an abort from the compiler when the method