我对VB代码没有任何经验。但我确实知道我有一个VB应用程序的问题,它挂在他的ocx中。我可以在windbg中看到它一遍又一遍地抛出c000008f异常,我知道这只是VB异常处理,它与“浮点精确结果”硬件异常无关(它只是微软的'辉煌'的实施方式)。调试VB组件的建议?
所以,这个问题。我如何找出问题的真相?我没有安装Visual Studio,但是我的笔记本电脑上安装了VS 2010 Express。不过,我不认为这也可以,我需要专业版来调试这种东西。
另外,我启用了日志记录中存在的问题和应用这些都是最后几行,我得到:
............. (唧唧歪歪) .... .........
[COVEControls] [00008.912] < - slbChart.ctl:Sub AddItem:(Label = DataObjs,Value = 0,Color =,LabelColor =):[res = 22%,mem = 2147483647]
[COVEControls] [00008.912] - > slbChart.ctl:Sub AddItem:(Label = Conts,Value = 1,Color =,LabelColor =):[res = 22% ,mem = 2147483647]
[COVEControls] [00206] [00008.912] - > slbChart.ctl:子LayoutChart:():[RES = 22%,MEM = 2147483647]
[COVEControls] [00207] [00008.912] < - slbChart.ctl:子LayoutChart:():[RES = 22%,MEM = 2147483647]
[COVEControls] [00208] [00008.912] < - slbChart.ctl:子的AddItem:(标签= Conts,值= 1 ,颜色=,标签颜色=):[res = 22%,mem = 2147483647]
[Cove] [00009.026] - > frmMain.frm:Sub COVE1_StatusMsg :(statMsg =获取卡片信息ading总的和游离的数据空间)):[RES = 22%,MEM = 2147483647]
[湾] [00117] [00009.026] < - frmMain.frm:子COVE1_StatusMsg:(STATMSG =获取卡信息(读取总和数据空间):[res = 22%,mem = 2147483647]
[COVEControls] [00008.948] < -COVE.ctl:Sub SetSizeBars :():[res = 22%,mem = 2147483647]
[COVEControls] [00210] [00008.949] - > COVE.ctl:子DrawPie:(PIC =,shp0 =,SHP1 =,PCTFREE = 0.9222):RES = 22%,MEM = 2147483647]
[COVEControls] [00008.950] - > COVE.ctl:Sub DrawLayer:(pic =,shp =,pct = 7.779998E-02,color1 = 32768,color2 = 128):[res = 22%,mem = 2147483647]
[COVEControls] [00212] [00008.950] < - COVE.ctl:子DrawLayer:(PIC =,SHP =,PCT = 7.779998E-02,颜色1 = 32768,COLOR2 = 128):[解析度= 22%,mem = 2147483647]
[COVEControls] [00008.950] - > COVE.ctl:Sub DrawLayer:(pic =,shp =,pct = 7.779998E-02,color1 = 32768,color2 = 128 ):[res = 22%,mem = 2147483647]
[COVEControls] [00008.950] < -COVE.ctl:Sub DrawLayer :(pic =,shp =,pct = 7。779998E-02,color1 = 32768,color2 = 128):[res = 22%,mem = 2147483647]
[COVEControls] [00008.950] - > COVE.ctl:Sub DrawLayer :(pic =,shp =,pct = 7.779998E-02,color1 = 32768,color2 = 128):[res = 22%,mem = 2147483647]
[COVEControls] [00008.950] < -COVE.ctl:Sub DrawLayer: (PIC =,SHP =,PCT = 7.779998E-02,颜色1 = 32768,COLOR2 = 128):[RES = 22%,MEM = 2147483647]
....
,它只是重复DrawLayer无限广告。崩溃应用程序的函数成功,您可以在几秒内看到检索到的数据,然后停止更新客户区并变成白色,鼠标指针仍然是沙漏,应用程序无响应,强制它关闭它在报告的详细信息中说:“hungapp”
所以,任何人都有线索如何找出它如何失败?我真的需要Visual Studio Pro ftw吗? (oo)'
这是相当辉煌。程序员用On Error Resume Next做什么总是真正的问题。一个不错的角落案例就是在循环过程中使用它,并且退出条件会跳出错误。没有出口。 – 2012-03-18 19:49:49