Overview
Features
Download
Documentation
Community
Add-Ons & Services

Use Poco::Util::Application on iOS

A general discussion forum.

Use Poco::Util::Application on iOS

Postby petrify » 20 Nov 2013, 01:43

I am trying to use POCO to handle HTTPS requests. In order to use the codes from NetSSL, here is a class inherited from Poco::Util::Application to contain SSL managers and stream factories.

Code: Select all
class NetSSLApp: public Poco::Util::Application
{
public:
   NetSSLApp()
   {
      Poco::Net::initializeSSL();
      Poco::Net::HTTPStreamFactory::registerFactory();
      Poco::Net::HTTPSStreamFactory::registerFactory();
        }

}


Every thing works well for Windows, Mac OS X and Android. But I have problems with the code in iOS.
I can compile the latest package of POCO for iOS (both the iPhoneSimulator (i686) and iPhoneOS (armV7, armV7s and arm64) ) without any problems. But when I run the code, it causes an exception when constructing an instance of class NetSSLApp before touching the first line of the constructor NetSSLApp(). So I suspect that something is wrong when the constructor of Poco::Util::Application is called.

The error message from Xcode is as follows.

libc++abi.dylib: terminating with uncaught exception of type Poco::SystemException: System exception

Can any one help me out of this?

Thanks in advance.
petrify
 
Posts: 1
Joined: 20 Nov 2013, 01:17

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 2 guests