Attempted to read or write protected memory

后端 未结 13 1569
予麋鹿
予麋鹿 2020-11-27 16:07

I\'ve started seeing an AccessViolationException being thrown in my application a several different spots. It never occured on my development pc, our test server. It also o

13条回答
  •  执念已碎
    2020-11-27 16:48

    The problem may be due to mixed build platforms DLLs in the project. i.e You build your project to Any CPU but have some DLLs in the project already built for x86 platform. These will cause random crashes because of different memory mapping of 32bit and 64bit architecture. If all the DLLs are built for one platform the problem can be solved. For safety try bulinding for 32bit x86 architecture because it is the most compatible.

提交回复
热议问题