Message 1 of 5
Marshal.GetActiveObject fails with InventorServer Object. Help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I'am trying to write some code on VS .NET Framework 4.6.1 and to generate a .dll file for my Inventor model that works on C360. So I can not use 'Inventor.Application' object. That's OK.
When I use 'Inventor.InventorServer' object, I can't set that object reference to the intance of my object. I think 'Marshal.GetActiveObject' does not work in this case. So what is the solution?
This is the error message: Object reference not set to an instance of an object.
This is related part of my code:
Dim oThisServer As Inventor.InventorServer = Nothing Try oThisServer = Marshal.GetActiveObject("Inventor.InventorServer") Catch ex As Exception Exit Sub End Try
Thanks!