[Mono-list] Using Windows DLL in Linux

Alan alan.mcgovern at gmail.com
Tue Mar 22 09:13:35 EDT 2011


NotImplementedExceptions can be thrown on purpose so that in itself is
not a concern unless it throws that incorrectly in your particular
case. Similarly for MonoTodo - It does not necessarily mean the
method/property doesn't work. It could just be suboptimal, or maybe it
only works in 95% of cases. So that's only a problem if it doesn't
work in your particular case.

In other words, it's quite likely it'll work just fine.

Alan.

On Tue, Mar 22, 2011 at 12:55 PM, Stifu <stifu at free.fr> wrote:
> I meant ReceivedBytesThreshold *property*, but whatever. :)
>
>
> Stifu wrote:
>>
>> It might still work, and would only fail when that method is called. But
>> if that method is called often, or on start up, then you're probably out
>> of luck. On the other hand, being very optimistic, it's possible the
>> method is there but never called.
>>
>> The only way to find out is to just try it.
>>
>> PS: this page confirms the ReceivedBytesThreshold method is not
>> implemented:
>> http://www.mono-project.com/HowToSystemIOPorts
>>
>>
>> Francisco M. Marzoa Alonso wrote:
>>>
>>> Hello,
>>>
>>> MoMA is that I needed, indeed. Here is the output I get:
>>>
>>> OK - All Methods called exist in Mono
>>> OK - No P/Invokes are called.
>>> FAIL - Methods called that throw NotImplementedException: 1
>>> FAIL - Methods called marked with [MonoTodo]: 1
>>>
>>> Showing it in detail, it's the same method for both fails:
>>> SerialPort.set_ReceivedBytesThreshold (int)
>>>
>>> That's for mono 2.8.
>>>
>>> So, I think the library &quot;as is&quot; it's not portable. :-|
>>>
>>> Regards,
>>>
>>> El 19/03/11 07:28, Matthew Winter escribió:
>>> &gt; Hi,
>>> &gt;
>>> &gt; Potentially yes, but I would first scan the DLL using the MoMA tool
>>> (http://www.mono-project.com/MoMA), which will be able to confirm if
>>> everything this assembly does is currently supported by Mono.
>>> &gt;
>>> &gt; Regards
>>> &gt; Matt
>>> &gt;
>>> &gt;
>>> _______________________________________________
>>> Mono-list maillist  -  Mono-list at lists.ximian.com
>>> http://lists.ximian.com/mailman/listinfo/mono-list
>>>
>>
>
>
> --
> View this message in context: http://mono.1490590.n4.nabble.com/Using-Windows-DLL-in-Linux-tp3388775p3396295.html
> Sent from the Mono - General mailing list archive at Nabble.com.
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>


More information about the Mono-list mailing list