title: Thread 1 : EXC_BAD_ACCESS (Code = 1, address = 0x0) issue generated
body: <p>I am using Paho MQTT (Internet of Things) With mobilefirst 7.1 for my hybrid application development (For iOS ,Android and windows phone devices). I tried with <strong>'broker.mqttdashboard.com'</strong> for MQTT broker, but its not working for iOS .</p>
  
  <h2>error:</h2>
  
  <p><img src="https://i.stack.imgur.com/mp9Ps.png"></p>
  
  <h2>Xcode console:</h2>
  
  <blockquote>
    <p>libc++abi.dylib: Pure virtual function called!</p>
  </blockquote>
  
  <h2>main.js:</h2>
  
  <pre><code>function wlCommonInit(){
       MQTTconnect(); //connect broker with subscribe 
  }
  </code></pre>
  
  <h2>mqttService.js:</h2>
  
  <pre><code>var host = 'broker.mqttdashboard.com';
  var port = 8000;
  var topic = 'Sensor';   // topic to subscribe to
  var useTLS = false;
  var username = null;
  var password = null;
  // username = "Nazmul";
  // password = "Kp0582!";
  var cleansession = true;   
  
  var mqtt;
      var reconnectTimeout = 2000;
  
      function MQTTconnect() {
          mqtt = new Paho.MQTT.Client(
                          host,
                          port,
                          "web_" + parseInt(Math.random() * 100,
                          10));
          var options = {
              timeout: 3,
              useSSL: useTLS,
              cleanSession: cleansession,
              onSuccess: onConnect,
              onFailure: function (message) {
                  console.log("Connection failed: " + message.errorMessage + "Retrying")
                  setTimeout(MQTTconnect, reconnectTimeout);
              }
      };
  
          mqtt.onConnectionLost = onConnectionLost;
          mqtt.onMessageArrived = onMessageArrived;
  
          if (username != null) {
              options.userName = username;
              options.password = password;
          }
          console.log("Host="+ host + ", port=" + port + " TLS = " + useTLS + " username=" + username + " password=" + password);
          mqtt.connect(options);
      };
  
      function onConnect() {
  
          console.log('Connected to ' + host + ':' + port)
          // Connection succeeded; subscribe to our topic
          mqtt.subscribe(topic, {qos: 0});
  
      };
  
      function onConnectionLost(response) {
          setTimeout(MQTTconnect, reconnectTimeout);
  
          console.log("connection lost: " + responseObject.errorMessage + ". Reconnecting")
  
      };
  
      function onMessageArrived(message) {
  
          var topic = message.destinationName;
          var payload = message.payloadString;
  
          console.log( topic + ' = ' + payload)
          alert(topic + ' = ' + payload);
  
      };
  </code></pre>
  
  <p>MobileFirst: version 7.1.0.00-20151114-1616</p>
  
  <p>xcode: Version 7.2 beta (7C46t)</p>
  
  <p>iphone 6s plus  </p>
  
  <p>project uploaded here: <a href="https://github.com/nazmulkp/Mqtt-MobileFirst-Hybrid-Application" rel="nofollow noreferrer">https://github.com/nazmulkp/Mqtt-MobileFirst-Hybrid-Application</a></p>
  
  <p>Thank you</p>