Did P/Invoke environment change in .NET 4.0?

前端 未结 4 2492
心在旅途
心在旅途 2021-02-19 15:17

I\'ve started upgrading a .NET 2.0 WinForms application to .NET 4.0. Well, OK, the upgrade process was just a matter of switching platform target, but making it actually work.

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-19 15:59

    I see a similar problem with a Delphi dll: social_msdn
    I have noticed that my library compiled with FreePascal (instead of Delphi) works even within VS2010 without any problems. Therefore I don't know if Delphi, the .NET4 debugger or the combination is the reason for the trouble.

    There is some evidence that memory allocated during dll start-up (e.g. in the initialization section) is affected by the memory corruption.

提交回复
热议问题