Re: [Ironpython-users] How to free memory in ironpython

2016-11-10 Thread Djordje Spasic via Ironpython-users
Yes, that's what I did. But I forgot to remove the "utils" from the list of arguments, when I wrote it. I just copied your code. Sorry about that. So this call: convertToShapefiles_Result = utils.OGR2OGR(osm_filePath, shps_filePath, bstrOptions, None)  raises this error: Could not convert arg

Re: [Ironpython-users] How to free memory in ironpython

2016-11-10 Thread Slide
Oh, I missed the utils being passed in, that's roughly the same thing. If you use just "utils" you would want to remove it from the parameter list of the call. On Thu, Nov 10, 2016 at 6:02 AM Djordje Spasic wrote: > Thank you for the reply Alex, > > I apologize for misunderstanding you. > > If I

Re: [Ironpython-users] How to free memory in ironpython

2016-11-10 Thread Djordje Spasic via Ironpython-users
Thank you for the reply Alex, I apologize for misunderstanding you. If I try to call the OGR2OGR method like that: convertToShapefiles_Result = utils.OGR2OGR(utils, osm_filePath, shps_filePath, bstrOptions, None)  Then I get an error message: Could not convert argument 0 for call to OGR2OGR

Re: [Ironpython-users] How to free memory in ironpython

2016-11-10 Thread Slide
That's not what I was talking about. You are calling the method like a static method by using the class name. Yiuve already created an instance above called "utils". On Thu, Nov 10, 2016, 03:37 Djordje Spasic wrote: > Hi Alex, > > > Thank you for the reply. > > If try to instantiate the MapWinGI

Re: [Ironpython-users] How to free memory in ironpython

2016-11-10 Thread Djordje Spasic via Ironpython-users
Hi Alex, Thank you for the reply. If try to instantiate the MapWinGIS.Utils class, I get the following error message: Cannot create instances of Utils because it is abstract I get the same error message for any MapWinGIS class. If I add "Class" to its name, then everything works fine (like: M