开发者

Why winform using external dll(VC) and ocx(VC) control can only import one?

开发者 https://www.devze.com 2023-01-02 04:18 出处:网络
We have a .net framework application with a vc dll and a vc ocx, and now if we only import one dll it is ok, but when we import both, it will pop up a messagebox saying: Debug Assertion Failed!

We have a .net framework application with a vc dll and a vc ocx, and now if we only import one dll it is ok, but when we import both, it will pop up a messagebox saying: Debug Assertion Failed!

I studied the child module of our application that imports the 开发者_运维问答vc dll, and I found after the framework import vc ocx and initialize, then the function LoadLibrary in our module importing the vc dll would return 0, that means memory limited or it's being called improperly.

I use getlasterror() the error code is 1114.

So I am very frustrated, hope someone can help me.


This sounds like a compatibility issue. Are you loading third party controls or inhouse controls?

Error code 1114 means that the DLL initialization failed (IIRC, the DllMain function fails).

0

精彩评论

暂无评论...
验证码 换一张
取 消