Moving vertext of callout make my application crash

Discussion created by secondflying on May 31, 2010
Latest reply on Jun 15, 2010 by darkchip
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();
if (command.Enabled == true)
      axMapControl1.CurrentTool = (ITool)command;