Index Gneration slow

Nov 3, 2015 at 5:04 PM
Hello everybody,

in my application (MapWinGis.ocx, windows 10 64, Access 32 Bit, vba) I somtimes need to create an index of unique values by:
objShape.Categories.Generate 0, ctUniqueValues, 0
This works if there are not too many elements in the shapefile. But it's painfully slow.

Is there a way to speed up the creation?

Thanks Helmut
Nov 6, 2015 at 10:13 AM
Hello again,

yesterday I had to revert my application to MapWinGis.ocx after having installed it with MapWinGis.ocx at a customer yesterday.

The application was so slow, that it paralyzed the computer for more than 5 minutes - the reverted version needs only a second for the same action. I'm completely aware that MapWinGis.ocx is not meant to work with access/vba and my code may not be optimal in places, but for future releases it would be nice to optimize the ocx code for performance. The bottle neck seems to be, as far as I can see, the index creation, if unique values are needed (which worked fine with

I'm happy with for the time being.

Thanks again for your excelent work.

Jan 21, 2016 at 3:24 PM
Hi Helmut,

I created for this.
We will have a look at this, but I don't know when.

And you are right you might want to consider migrating your application to a MapWindow5 plug-in.