Welcome!

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

Reply
New Developer
abidfs
Posts: 14
Registered: ‎03-11-2013
My Device: Q10

bps_get_event() crashes for network related events

Hi everyone,

 

I am useing the instruction from the below site to listen for network status changes, but m not able to figure out what is the problem with the code;

 

https://developer.blackberry.com/native/reference/bb10/com.qnx.doc.bps.lib_ref/com.qnx.doc.bps.lib_r...

 

There are 2 problems basically;

1. I am using bps_get_event(&event, -1) to listen for events, for the first time this call returns even if there is no change in netork.

2. For the second time the same call causes the segmentation fault. :smileysad:

 

Thanks

- Abid