在Windows 7上崩溃时,应用程序无法与多功能设备进行通信 [英] Application is not communicating with omnikey devices when it is crashed on windows 7

查看:94
本文介绍了在Windows 7上崩溃时,应用程序无法与多功能设备进行通信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有用于智能卡打印的C ++/C#应用程序.该应用程序需要Omnikey 3821,Omnikey 3x21和DTC 550打印机(包括Gemplus GCR410智能卡读卡器).应用程序在启动时将创建三个线程,以侦听设备上的事件.

We have C++/C# application for smart card printing.Application needs Omnikey 3821, Omnikey 3x21 and DTC 550 printer(it includes Gemplus GCR410 smart card reader). Application creates three threads while starting up to listen the events on devices.

由于某些原因,如果应用程序崩溃,则应用程序将无法再次与设备通信.

Because of some reason, if application crashes, application is not able to communicate with devices again.

如果我重新启动系统或拔下设备的插头,则表明应用程序正在与设备进行通信.

If I restart the system or unplug and plug the devices then application is communicating with devices.

如果应用程序正确关闭,就不会有任何问题,这意味着所有设备都已正确释放.

If application closed properly there wont be any issue, means all the devices are being released properly.

仅在Windows 7 64位操作系统上观察到此问题,在Windows XP上运行良好.

This issues is being observed only on Windows 7 64 bit OS, working good on Windows XP.

我的问题:

1.如何查看崩溃的应用程序中没有释放哪些线程?

1. How to see what are the threads are not being released during crashing the application ?

2.为什么仅在Windows 7 64位上会发生这种情况?

2. Why it's only happening on Windows 7 64 bit?

3.有什么原因,请在监听事件后冲洗设备.

3. Is there any why, flush the devices before listening for events to release.

谢谢

Rao

推荐答案

嗨Rao,

从描述中,我认为winDbg应该有所帮助.这是供您参考的文档:

From the description, I think the winDbg should be help. Here is a document for your reference:

   http://msdn.microsoft.com/en-us/library/ff420662.aspx   ;

   http://msdn.microsoft.com/en-us/library/ff420662.aspx 

您是否尝试将您的应用程序编译为64位平台目标? X86和X64之间可能会有差异.

And have you try to complie your app as 64bit platform target? There may be some diference between X86 and X64.

MSND还提供了智能设备开发"类别供您参考,

Also MSND has a Smart Device Development category for your reference too,

  http://social.msdn.microsoft.com/Forums/zh-CN/category/smartdevicedevelopment  

  http://social.msdn.microsoft.com/Forums/en-US/category/smartdevicedevelopment 

您可以尝试将其张贴在此处以获得更有效的回复.

You can try to post it there to get more effective responses.

希望它会有所帮助.


这篇关于在Windows 7上崩溃时,应用程序无法与多功能设备进行通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆