[Mono-list] C# interoperation different behavior in Windows and Linux

raincloud andrey.gelman at gmail.com
Fri Aug 12 11:45:11 EDT 2011


Hi, everyone !
I wrote a simple interoperation test that I ran in Windows 7/MS Visual
Studio 2010 and Ubuntu 10.04/Mono C# 2.6.7.0. Strangely, the results were
different.
In Windows / MS C#:
- The test loads a function from a DLL file.
- Then it asks to replace the DLL file with another DLL file with the same
name and the same function name that implements different functionality.
- The test loads the second function from the second DLL file.
- The test runs both functions ...
... each function provides a result according to its functionality.

In Linux / Mono:
... both functions provide the same result according to functionality of the
1-st DLL file.

The full code of test and both DLL files may be downloaded at:
http://ubuntuone.com/p/19xH/ http://ubuntuone.com/p/19xH/ 

--
View this message in context: http://mono.1490590.n4.nabble.com/C-interoperation-different-behavior-in-Windows-and-Linux-tp3739710p3739710.html
Sent from the Mono - General mailing list archive at Nabble.com.


More information about the Mono-list mailing list