There is a simple callout in my map. I use the below C# codes to select the callout element and move it. It's no problem to move the text. But when I move the vertex, the application crash. The exception is "AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory has been corrupted. "Both moving text and vertex work well in arcmap.My environments: windows xp sp2, .net framework2.0, arcgis engine9.3 sp1, arcgis desktop 9.3 sp1.the attachments are my application with code.ICommand command = new ControlsSelectToolClass();
command.OnCreate(this.axMapControl1.Object);
if (command.Enabled == true)
{
axMapControl1.CurrentTool = (ITool)command;
}
Thanks.flying