Forum - Info Center - Eltima Software

Eltima Help Center => Virtual Serial Port Driver & Virtual Serial Port ActiveX => Topic started by: gtsoftware on November 27, 2013, 02:35:36 AM

Title: Open(), Close(), exception
Post by: gtsoftware on November 27, 2013, 02:35:36 AM
Using VS2012 C++ and Serial Port ActiveX Control OEM 4.0.245

The steps are:



The result is an exception:

First-chance exception at 0x772170CF (ntdll.dll) in SerialTest.exe: 0xC0000008: An invalid handle was specified.
Unhandled exception at 0x772170CF (ntdll.dll) in SerialTest.exe: 0xC0000008: An invalid handle was specified.

The documentation for Close() does not mention any exceptions

Why is an exception being thrown?

The program is a brand new C++ MFC dialog with a button to call Open() and a button to call Close()
Running on Windows 7 Pro, 32-bit

Title: Re: Open(), Close(), exception
Post by: alexander-britt on November 27, 2013, 10:45:44 AM
Serial Port ActiveX Control 4 has not been tested and may be not compatible with Visual Studio 2012.

The list of currently 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.
Title: Re: Open(), Close(), exception
Post by: gtsoftware on November 27, 2013, 11:32:51 AM
You are correct.

I built the same example using Visual Studio 2010 and I did not experience an exception.

Is there a roadmap to support VS2012 and VS2013 ?
Title: Re: Open(), Close(), exception
Post by: alexander-britt on December 18, 2013, 04:06:05 PM
Sorry for the late reply.

Quote
Is there a roadmap to support VS2012 and VS2013 ?
We are planning to release an update in the near future, although no specific time frame is available at this point. Please stay tuned.