This project is read-only.

strange problem with legend1.layers.clear

Jun 9, 2014 at 5:20 PM

I noticed that when I call

Legend1.Map = CType(.GetOcx(), MapWinGIS.Map) ' Création de la légende

Legend1.layers are set with the numbers of layers added to the map. That's fine.

But if I call

then Visual Studio returns a buil error "can't find file obj\x86\debug\myprog.exe"

Quite strange isn't it ?

I test several time quit VS and relaunch, same error, ilf .clear is not commented, I get the error.
Jun 10, 2014 at 6:34 PM
Well, it happens also with commands
            winmap1.SendSelectBoxDrag = False
            winmap1.SendSelectBoxFinal = False
If I uncomment those two lines, get message unable to find file obj\x86\debug\myprog.exe
If I comment them, no problem

No problme also if I uncheck Activate Application Framework in properties. But of course in this case, I have bad forms.

Must be a visual studio 2010 problem, would appreciate any help

Jun 11, 2014 at 7:10 PM
Finally, it appears that the problem comes from Avast ! Take it off or set VS folders not to be checked.
Marked as answer by pmeems on 12/4/2014 at 3:22 AM