Open(), Close(), exception(Read 4861 times)
Open(), Close(), exception on: November 27, 2013, 02:35:36 AM
Using VS2012 C++ and Serial Port ActiveX Control OEM 4.0.245

The steps are:

  • Open("\\\\.\\COM18") which succeeds.
  • Close()


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




Re: Open(), Close(), exception Reply #1 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.



Re: Open(), Close(), exception Reply #2 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 ?



Re: Open(), Close(), exception Reply #3 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.



 

Sitemap 1 2 3 4 5