Hi...


Iam using WPF to display the map(.mxd) from a folder..

For this iam using 3 windowsformhost
1 is for toolbar control
2 is for toc control
3 is for map control..

when iam try to add a code in the toolbar control iam getting the following error,,

System.AccessViolationException

Attempted to read or write protected memory. This is often an indication that other memory is corrupt.


toolbarControl.AddItem("esriCadastralUI.CadastralEditorMenu");