Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.13 KB | None | 0 0
  1. test.exe
  2. imaging-system.dll
  3. imaging-system_mil9.dll
  4. imaging-system_mil10.dll
  5. Matrox.MatroxImagingLibrary.dll (the one from MIL 9)
  6. Matrox.MatroxImagingLibrary.dll (the one from MIL 10)
  7.  
  8. imaging-system_mil10.dll
  9. Matrox.MatroxImagingLibrary10.dll
  10.  
  11. test.exe
  12. imaging-system.dll
  13. imaging-system_mil9.dll
  14. imaging-system_mil10.dll
  15. missing: Matrox.MatroxImagingLibrary9.dll, Matrox.MatroxImagingLibrary10.dll
  16.  
  17. test.exe
  18. dlltestDLL9.DLL
  19. dlltestDLL10.DLL
  20. mil9-x64mil.netMatrox.MatroxImagingLibrary.dll
  21. mil10-x64mil.netMatrox.MatroxImagingLibrary.dll
  22.  
  23. private static void Main ()
  24. {
  25. Mil10 (); // when stepping into this, dlltestDLL10.dll is loaded
  26. Mil9 (); // when stepping into this, dlltestDLL9.dll is loaded
  27. }
  28.  
  29. private static void Mil10 () // when arriving here, dlltestDLL10.dll has been loaded
  30. {
  31. testDLL10.CDLL10.Work (); // when stepping into this, mil10-x64Mil.netMatrox.MatroxImagingLibrary.dll is loaded
  32. }
  33.  
  34. private static void Mil9 () // when arriving here, dlltestDLL10.dll has been loaded
  35. {
  36. testDLL9.CDLL9.Work (); // when stepping into this, MissingMethodException is thrown, which is correct, because the EXE uses the already loaded DLL, which is the wrong one.
  37. }
  38.  
  39. <?xml version="1.0" encoding="utf-8"?>
  40. <configuration>
  41. <startup>
  42. <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6" />
  43. </startup>
  44. <runtime>
  45. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  46. <probing privatePath="dll" />
  47.  
  48. <dependentAssembly>
  49. <assemblyIdentity name="Matrox.MatroxImagingLibrary"
  50. publicKeyToken="5a83d419d44a9d98"
  51. culture="neutral" />
  52. <codeBase version="9.2.1109.1" href="mil9-x64Mil.netMatrox.MatroxImagingLibrary.dll" />
  53. </dependentAssembly>
  54.  
  55. <dependentAssembly>
  56. <assemblyIdentity name="Matrox.MatroxImagingLibrary"
  57. publicKeyToken="5a83d419d44a9d98"
  58. culture="neutral" />
  59. <codeBase version="10.30.595.0" href="mil10-x64Mil.netMatrox.MatroxImagingLibrary.dll" />
  60. </dependentAssembly>
  61. </assemblyBinding>
  62. </runtime>
  63. </configuration>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement