Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Posts: 232
Registered: ‎01-30-2011
My Device: Dev Alpha C, Z10 LE
My Carrier: P4

Headless, port-directed SMS - error using request.data()

[ Edited ]



I created small app, which has headless part. The headless part has two actions:

  1. system.STARTED - use GPS with 60s position update - should works all time
  2. PORT_DIRECTED_SMS - receives message and do something

I have problem with (2) action - when I try to read SMS message content using:

QByteArray message = QByteArray::fromBase64(request.data());

 my app (headless part) crash - in Momentics I see:

Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt. You must
reimplement QApplication::notify() and catch all exceptions there.

 And first part of headless app (this with GPS) also stop working.


I'm sure, that problem is with:


 but I really don't know, how to solve this, because, when I send second time SMS (GPS part not works) everything is going without any problem...


Could you help me, please?


Thank you in advance

All time online Smiley Very Happy