Reply

64 bit machine Problem

[ Edited ]

hi all

i am creating SolidEdge ST4 Addin in vb.net. when i installed addin on 64 bit machine i got error at geting active documnet or modifying document by code please help me to solve this error.

 

1)trying to get active document :-

" Attempted to read or write protected memory. This is often an indication that other memory is corrupt. || at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)

at SolidEdgeAssembly.Occurrence.get_PartDocument()"

 

2) Trying to open document

| A lock violation has occurred. (Exception from HRESULT: 0x80030021 (STG_E_LOCKVIOLATION)) || at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)

at SolidEdgeFramework.Documents.Open(String Filename, Object DocRelationAutoServer, Object AltPath, Object RecognizeFeaturesIfPartTemplate, Object RevisionRuleOption, Object StopFileOpenIfRevisionRuleNotApplicable)

 

 

3)trying to update document:-

COM object that has been separated from its underlying RCW cannot be used. || at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters)

at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)

at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)

at SolidEdgeAssembly.AssemblyDocument.UpdateAll()

 

5)Trying to save document :-

COM object that has been separated from its underlying RCW cannot be used. || at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters)

at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)

at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)

at SolidEdgeAssembly.AssemblyDocument.Save()

 

Posted by: Yogesh Shinde
Post date: 7/23/2012 1:19:01 AM

1 REPLY

Re: 64 bit machine Problem

[ Edited ]

Sounds like you called ReleaseComObject one too many times. That is what gives you the separation from underlying COM object exception.

 

Posted by: R.D. Holland
Post date: 9/18/2012 3:43:59 PM