ocx在release下运行很好,在debug模式下的js调用下回崩溃

ocx在release下运行良好,在debug模式下的js调用下回崩溃
ocx在release下的js调用没问题,什么都没有变,debug下就崩溃

提示如下:“ windows  has triggered a breakpoint in iexplore.exe , a bug in iexplore.exe or any of the Dlls it has loaded. This may alse be due to the user pressing F12 which iexplore.exe has focus.”


感谢大侠了 
------解决方案--------------------
release和debug的内存分配方式不一样,这种问题估计是由于你程序中哪些变量或数组没有初始化造成的,楼主仔细检查一下,看有没有我说的情况,如果有就都初始化一下再式式。