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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Native Development

Reply
abx
Contributor
abx
Posts: 26
Registered: ‎10-03-2012
My Carrier: lebara

bps_event_destroy

I use bps_event_create and bps_channel_push_event from thread 2 and it is received on main thread.

 

Do I need to call bps_event_destroy after I receive the event?

 

The docs say: This function must be called only if an event is created using bps_event_create() and the event is not pushed to BPS using bps_push_event().

 

But it doesn't mention bps_channel_push_event.  

Please use plain text.
BlackBerry Development Advisor
jhoffmann
Posts: 38
Registered: ‎10-26-2011
My Carrier: Rogers

Re: bps_event_destroy

You don't need to call destroy. The docs need to be updated to include both bps_push_event() and bps_channel_push_event().

Please use plain text.
Moderator
KarlaDJR
Posts: 2,306
Registered: ‎10-20-2009

Re: bps_event_destroy

Please use plain text.