Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
5.3.2
-
None
-
Mac OS 10.9.5
Qt 5.3.2
Description
under some circumstances the function QtSerialPort::availablePorts crashes
- it works when running the program from withn the QtCreator
- it crashes when double clicking on the program in the Finder
- it crashes when running the program from within Xcode
i can reproduce the issue with the enumerator example project from the Qt5.3.2 package
to make it work i have done the following:
added a function like searchProperty, just a different return type
Bar.java
static CFTypeRef searchProperty2(io_registry_entry_t ioRegistryEntry, const QCFString &propertyKey) { return ::IORegistryEntrySearchCFProperty( ioRegistryEntry, kIOServicePlane, propertyKey, kCFAllocatorDefault, 0); }
and used it in
Bar.java
static QString searchStringProperty(io_registry_entry_t ioRegistryEntry, const QCFString &propertyKey) { CFTypeRef result = searchProperty2(ioRegistryEntry, propertyKey); return QCFString::toQString(CFStringRef(static_cast<CFTypeRef>(result))); }