VB6 运行时 5 与外部库出错

VB6 erroring out with Runtime 5 with external library

我们正在使用处理数据采集的外部高分辨率计时器库。这个计时器带有一个许可证文件。由于某些原因,定时器库会间歇性地抱怨找不到许可证文件。这是我相信应用程序出错的时候。

我能够通过打破所有错误来找到这个错误。

有没有进一步调试的方法,还是我没有源代码就卡住了?

编辑:


我刚刚注意到编译后出现了很多运行时 5 错误。与 IDE.

相比,这似乎更多地发生在代码的编译副本中。

马布里已经离开很久了。

或许可以尝试更换 Timer 库。快速 google 搜索有很多结果,这是最重要的:

http://vb.mvps.org/tools/ccrpTmr/

CCRP High Performance Timer Objects, created by CCRP member Karl E. Peterson, provide much more robust options than Visual Basic's intrinsic Timer control ever has. For years, the only option available to VB developers was to add a form to their project if they wanted to use a timer. This had the effect of totally destroying any hope of encapsulation if, for example, a class module needed periodic timer events