我写了一个MFC的规则DLL其中有一个Video类,里面有一个Start(Cstatic *a)函数
实现了从主程序中传递一个CPicture控件实例的地址DLL中的Start函数在窗体中显示图片,调用的时候使用的是指针,Video *V=new Video();程序在运行的时候正确,但是在关闭程序的时候会出现这样的错误:
Windows has triggered a breakpoint in VideoDLL.exe.This may be due to a corruption of the heap, which indicates a bug in VideoDLL.exe or any of the DLLs it has loaded.This may also be due to the user pressing F12 while VideoDLL.exe has focus.The output window may have more diagnostic information.请高手帮忙指点一二……