Forcing an app to run single core only?

前端 未结 3 1191
萌比男神i
萌比男神i 2021-01-21 03:26

I have this strange issue with some third party DLL\'s. The third party provider references some open source DLL\'s that have a memory exception whenever I try to use a certain

3条回答
  •  悲哀的现实
    2021-01-21 04:09

    I once had some strange problems when referencing DLLs that were 32-bit but the .NET application was built as 64-bit. Since you mentioned that it doesn't happen on the single core machines, I'm assuming they're 32-bit and the multi-core machines are 64-bit?

    The only difference was I was getting a BadImageFormatException, which you didn't mention. Anyway, the way I solved it was to set the "Platform target" of my application to x86 and everything worked after that.

提交回复
热议问题