On 14.08.2011 11:17, Ian Norton wrote: > I'm not sure how well this is supposed to work, > > some bits of msdn suggest that loading the same assembly twice with different > evidence should fail. Loading an assembly twice with the same evidence would > suggest that they are identical.
This does not apply to native libraries. Robert > > Ian > > On Fri, Aug 12, 2011 at 04:45:11PM +0100, raincloud wrote: >> 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. >> _______________________________________________ >> Mono-list maillist - [email protected] >> http://lists.ximian.com/mailman/listinfo/mono-list > _______________________________________________ > Mono-list maillist - [email protected] > http://lists.ximian.com/mailman/listinfo/mono-list > _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
