[Mono-dev] Linux ComImport

Keithen Keithen.Neu at gmail.com
Tue Aug 19 21:04:45 UTC 2014


Hi,

I'm trying to make a Windows.Net(c#) application run on Linux(Raspbian).
The application is trying to use some COM-stuff, causing the App to crash.
Since I dont need the content of the COM-Object, I wanted to rewrite just
the libraries/parts necessary for not crashing the App.
I have written an ole32.dll exporting CoCreateIntance. So far, my
CoCreateInstance gots callen and receives parameters correctly. But after
CoCreateInstance is called, the application crashes with

Stacktrace:
  at <unknown> <0xffffffff>
  at (wrapper managed-to-native)
object.__icall_wrapper_mono_object_new_specific (intptr) <0xffffffff>
  at linuxcom.linuxcom.Main (string[]) <0x00033>
  at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object
(object,intptr,intptr,intptr) <0xffffffff>
  at <unknown> <0xffffffff>



The c#-code belonging to the application:

Object obj = Activator.CreateInstance(Type.GetTypeFromCLSID(new
Guid("AE1E00AA-3FD5-403C-8A27-2BBDC30CD0E1")));



I attached c++ code belonging to ole32.dll (I haven't written c++ for some
time): 
ole32.c <http://mono.1490590.n4.nabble.com/file/n4663589/ole32.c>  


Is there an easier way to do this?
Why doesn't it work?

Greetings,
Keithen



--
View this message in context: http://mono.1490590.n4.nabble.com/Linux-ComImport-tp4663589.html
Sent from the Mono - Dev mailing list archive at Nabble.com.


More information about the Mono-devel-list mailing list