Thursday, July 21, 2005

Comment No: 004 User: Jonathan Aquino Date: 7/21/2005 11:25:23 AM
In Comment 002, the exception is occurring in the call application.get_Document()

--------------------------------------------------------------------------------

Comment No: 003 User: Jonathan Aquino Date: 7/21/2005 11:03:04 AM
In comment 001, the InvalidComObjectException is occurring in the cast of workspace to an IWorkspace

--------------------------------------------------------------------------------

Comment No: 002 User: Jonathan Aquino Date: 7/21/2005 10:58:20 AM
If you continue on and dismiss the error dialog, ArcMap will then prompt you if you want to exit. Say Cancel, and ArcMap stays open. If you then select another polygon, you get a slightly different InvalidComObjectException:

EXCEPTION: System.Runtime.InteropServices.InvalidComObjectException

MESSAGE: COM object that has been separated from its underlying RCW can not be used.

SOURCE: ESRI.ArcGIS.Framework

ESRI.ArcGIS.Framework.IDocument get_Document()
at ESRI.ArcGIS.Framework.IApplication.get_Document()
at VegCap.ArcMapMode.Layer(String name) in C:\cvs_sandbox\MSRMVRIMS\dotnet\VegCap\VegCap\ArcMapMode.jsl:line 169
at VegCap.ArcMapMode.vegCoverSpatialObjectLayer() in C:\cvs_sandbox\MSRMVRIMS\dotnet\VegCap\VegCap\ArcMapMode.jsl:line 57
at VegCap.ArcMapMode.initializeVegCapWithSelection() in C:\cvs_sandbox\MSRMVRIMS\dotnet\VegCap\VegCap\ArcMapMode.jsl:line 95
at VegCap.1.selectionChanged() in C:\cvs_sandbox\MSRMVRIMS\dotnet\VegCap\VegCap\ArcMapMode.jsl:line 31
at VegCap.1.execute(Object listener) in C:\cvs_sandbox\MSRMVRIMS\dotnet\VegCap\VegCap\SelectionEventDispatcher.jsl:line 86
at VegCap.SelectionEventDispatcher.fire(Block block) in C:\cvs_sandbox\MSRMVRIMS\dotnet\VegCap\VegCap\SelectionEventDispatcher.jsl:line 40
at VegCap.SelectionEventDispatcher.OnSelectionChanged() in C:\cvs_sandbox\MSRMVRIMS\dotnet\VegCap\VegCap\SelectionEventDispatcher.jsl:line 84



--------------------------------------------------------------------------------

Comment No: 001 User: Jonathan Aquino Date: 7/21/2005 10:54:39 AM
EXCEPTION: System.Runtime.InteropServices.InvalidComObjectException

MESSAGE: COM object that has been separated from its underlying RCW can not be used.

SOURCE: VegCap

Void write(ESRI.ArcGIS.Geodatabase.IFeatureWorkspace, java.util.List)
at VegCap.PersonalGeodatabase.ArcObjectsPersonalGeodatabaseWriter.write(IFeatureWorkspace workspace, List vegetationCoverSpatialList) in C:\cvs_sandbox\MSRMVRIMS\dotnet\VegCap\VegCap\PersonalGeodatabase\ArcObjectsPersonalGeodatabaseWriter.jsl:line 69
at VegCap.Actions.SaveAction.Execute(VegCapForm form) in C:\cvs_sandbox\MSRMVRIMS\dotnet\VegCap\VegCap\Actions\SaveAction.jsl:line 20
at VegCap.SaveManager.saveIfNecessary(Boolean showCancelButton) in C:\cvs_sandbox\MSRMVRIMS\dotnet\VegCap\VegCap\SaveManager.jsl:line 65
at VegCap.3.execute() in C:\cvs_sandbox\MSRMVRIMS\dotnet\VegCap\VegCap\ArcMapMode.jsl:line 88

0 Comments:

Post a Comment

<< Home