本文介绍了对垃圾收集的类型委托进行了回调,这可能会导致应用程序崩溃?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我正在进行从VB层到c ++ DLL的PInvoke调用并得到以下错误吗?



对垃圾收集的类型委托进行了回调'' EPSS06!EPSS32.ErrorUtilities + delbpeErrCB ::调用 ''。这可能会导致应用程序崩溃,损坏和数据丢失。将委托传递给非托管代码时,托管应用程序必须保持活动状态,直到确保永远不会被调用为止。





有没有人知道问题是什么?

解决方案

Hello I am making a PInvoke call from VB layer to the c++ DLL and getting the below erro?

A callback was made on a garbage collected delegate of type ''EPSS06!EPSS32.ErrorUtilities+delbpeErrCB::Invoke''. This may cause application crashes, corruption and data loss. When passing delegates to unmanaged code, they must be kept alive by the managed application until it is guaranteed that they will never be called.


Does anyone have any idea what the problem is?

解决方案


这篇关于对垃圾收集的类型委托进行了回调,这可能会导致应用程序崩溃?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-18 06:48