尝试在同一时间运行两次时设备声称有问题 [英] device claimed problem when try to run twice in the same time
问题描述
大家好,
我目前正在开发一个使用Microsoft POS for .Net的POS系统。
I'm currently developing a POS system using Microsoft POS for .Net.
我有使用Microsoft提供的SDK,http://www.microsoft.com/en-us/download/details.aspx?id = 5355。
I have played with the SDK provided by Microsoft at http://www.microsoft.com/en-us/download/details.aspx?id=5355 .
该程序运行良好。  ;
The program works well.
但是当我试图在同一时间运行它两次时,出现问题。
But when I tried to run the it for twice in the same time, there is a problem.
假设我正常运行应用程序,然后选择设备,然后声明并启用它。该计划将正常运作。但是如果让我说我在bin文件夹中打开了TestApp.exe(调试目的),并且我选择了设备并声明它,它将提示
输出异常错误。说设备正在等待响应(已在上次运行中声明)。在这种情况下,先前的应用程序仍在运行(总计2)。我为什么要这样做?因为我担心也许当我有自己的POS系统
为客户开发并且程序挂起时,它会使硬件(POS打印机,现金抽屉等)卡住。
Let's say I run the application normally, then select the device and then claim it and enable it. The program will work fine. But if let's say I opened the TestApp.exe(Debug purpose) in the bin folder, and I select the device and claim it, it will prompt out the Exception error. Saying that the device was waiting for response (which is already claimed in last run). In this case the previous application is still running (Total 2). Why am I doing this? because I am afraid that maybe when I have my own POS system developed for the client and the program hung, it will make the hardwares (POS Printers, cash drawer and etc) become stuck.
我该怎么办?希望有人可以帮助我...
What I have to do? Hope somebody can help me out...
谢谢
推荐答案
好家伙,
Hello guys,
我目前正在使用Microsoft POS为.Net开发POS系统。
I'm currently developing a POS system using Microsoft POS for .Net.
我玩过使用Microsoft提供的SDK,http://www.microsoft.com/en-us/download/details.aspx?id = 5355。
I have played with the SDK provided by Microsoft at http://www.microsoft.com/en-us/download/details.aspx?id=5355 .
该程序效果很好。
The program works well.
但是当我试图在同一时间运行它两次时,就会出现问题。
But when I tried to run the it for twice in the same time, there is a problem.
假设我正常运行应用程序,然后选择设备,然后声明并启用它。程序运行正常。但是如果让我说我打开了TestApp.exe(调试目的) )在bin文件夹中,我选择设备并声明它,它将提示
异常错误。说设备正在等待响应(已在上次运行中声明)。在这种情况下,前一个应用程序仍在运行(总计2)。为什么我这样做?因为我担心,当我有自己的POS系统
为客户开发并且程序挂起时,它会生成硬件(POS打印机,现金抽屉等等卡住了。
Let's say I run the application normally, then select the device and then claim it and enable it. The program will work fine. But if let's say I opened the TestApp.exe(Debug purpose) in the bin folder, and I select the device and claim it, it will prompt out the Exception error. Saying that the device was waiting for response (which is already claimed in last run). In this case the previous application is still running (Total 2). Why am I doing this? because I am afraid that maybe when I have my own POS system developed for the client and the program hung, it will make the hardwares (POS Printers, cash drawer and etc) become stuck.
我要做什么?希望有人可以帮助我...
What I have to do? Hope somebody can help me out...
谢谢
Thank you
这篇关于尝试在同一时间运行两次时设备声称有问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!