|
| From: | anonymous |
| Subject: | [Octave-bug-tracker] [bug #62019] [octave forge] (windows) actxserver is unable to create a server instance with a custom COM object |
| Date: | Thu, 10 Feb 2022 08:06:03 -0500 (EST) |
URL:
<https://savannah.gnu.org/bugs/?62019>
Summary: [octave forge] (windows) actxserver is unable to
create a server instance with a custom COM object
Project: GNU Octave
Submitted by: None
Submitted on: Thu 10 Feb 2022 01:06:01 PM UTC
Category: Octave Forge Package
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Unexpected Error or Warning
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Release: 6.4.0
Discussion Lock: Any
Operating System: Microsoft Windows
_______________________________________________________
Details:
I have made a custom COM object in C# with .NET Core 6. The project containing
the COM object was successfully built and afterwards I registered the
generated '*.comhost.dll' file with 'regsvr32'.
The registration was successful and the object works fine with Excel VBA as
well as Matlab.
Here is the code I entered in Octave and the error response I got:
octave:1> pkg load windows
octave:2> actxserver('HelloWorldCOMObject')
error: actxserver: unable to create server instance for `HelloWorldCOMObject'
octave:3>
I have also had a problem with trying to use the COM object in Python but
there was a workaround for the error that occurred in Python.
I am suspecting that the code that is executed behind actxserver() has a
similar problem as Python.
The Python solution and the reason for the error are described in this link:
https://stackoverflow.com/questions/71047993/net-core-6-0-com-interoperability-issues-with-python-octave
I will also add the .csproj file and the .cs file I used to create the
*.comhost.dll for the COM object as attached files.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Thu 10 Feb 2022 01:06:01 PM UTC Name: COMNetCore6.csproj Size: 396B
By: None
<http://savannah.gnu.org/bugs/download.php?file_id=52839>
-------------------------------------------------------
Date: Thu 10 Feb 2022 01:06:01 PM UTC Name: ComObject.cs Size: 310B By:
None
<http://savannah.gnu.org/bugs/download.php?file_id=52840>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?62019>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
| [Prev in Thread] | Current Thread | [Next in Thread] |