Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

This question can seems to be n00b, but really im stuck at running this Arcengine Sample code, then i got this error

i'm looking for any working example of Symbol Selector.

i'm working on XP SP3, ArcGIS 10.1 and ArcEngine 10.1

Any help please

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

I also get an error when attempting to click the context menu item in the sample:

A first chance exception of type 'System.Runtime.InteropServices.COMException' occurred in mscorlib.dll
'MapControlAppPropertyPage.vshost.exe' (Managed (v2.0.50727)): Loaded 'C:\Windows\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll'
Creating an instance of the COM component with CLSID {F9043C85-F6F2-101A-A3C9-08002B2F49FB} from the IClassFactory failed due to the following error: 80040112.
The thread '' (0x4d8) has exited with code 0 (0x0).

It sounds from the comment on your SO question that this just comes down to the sample relying on a really old 3rd party library (PropertyPages.dll) that has since been broken by 1 or more security patches.

If someone with C++ experience took the time they could probably recompile the DLL from the provided source code to make the sample work, but it's probably unnecessary. You can create property pages without it, so I'm not sure why it's used in this case.

You could also just look at the source code and the designer to get an idea of how it is supposed to work.

share|improve this answer
    
Thanks a lot for the test, i was wondering if the bug happens just in my case. Concerning properety pages i'm steel newbie i will use them for the 1st time, i have browsed the code, but i don't know how i could get ride of this dll and resolve the problem. –  geogeek Oct 21 '12 at 9:52
    
There's another sample here that uses property pages without it: Layer property page and property sheet –  blah238 Oct 21 '12 at 18:25
    
Oh that sample is for Desktop, I'm not sure if it can be adapted to Engine (you'd probably have to remove the Framework, ArcMapUI and CartoUI references and strip out functionality relying on them). –  blah238 Oct 21 '12 at 18:49
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.