Multiple ports reading(Read 6961 times)
Multiple ports reading on: July 25, 2013, 10:02:00 AM
Hi everybody,
I have just downloaded Advanced Serial Port ActiveX Control (trial).
My platform: Windows 7, VS 2012
When I try to create an AxSPorttAx object at runtime like:
AxSPortLib.AxSPortAx newPort = new AxSPortLib.AxSPortAx();
if (newPort.Open("COM2"))
{
     .....
}
else
{
    .....
}

I got the following message:
A debugger is attached to MyProgram.vshost.exe but not configured to debug this unhandled exception. To debug this exception, detach the current debugger.

Please help me to fix this,
Thank you,
nguoinv
« Last Edit: July 25, 2013, 10:28:41 AM by nguoinv »



Re: Multiple ports reading Reply #1 on: July 25, 2013, 11:53:56 AM
Hello,

Serial Port ActiveX Control has not been tested and may be incompatible with Visual Studio 2012. The list of supported development environments includes:

- VB: Microsoft Visual Basic 5-6;
- VB.net, C++, C#: Microsoft Visual Studio.net 2002/2003/2005/2008/2010;
- C++ Builder 3-6/X/2006/2007/2009/2010;
- Delphi 3-8/2005/2006/2007/2009/2010.



Re: Multiple ports reading Reply #2 on: July 25, 2013, 03:15:24 PM
Thank you for your reply.
But if i drop the Serial Port ActiveX Control to the form at design time, everything is ok. I got data from the port.



Re: Multiple ports reading Reply #3 on: July 25, 2013, 04:33:35 PM
Hi Alexander,
In the case if we cannot create instances of the Serial Port ActiveX Control at runtime, how I can do if I write a program for the following problem:
- I have to capture incoming data from external devices attached to PC serial ports. The number of devices can know only at runtime (when run the program).
Thank you,



Re: Multiple ports reading Reply #4 on: July 30, 2013, 04:20:33 PM
Quote
In the case if we cannot create instances of the Serial Port ActiveX Control at runtime, how I can do if I write a program for the following problem:
- I have to capture incoming data from external devices attached to PC serial ports. The number of devices can know only at runtime (when run the program).
What language do you develop in? I will check with our developer to see if he might suggest any workaround.



 

Sitemap 1 2 3 4 5