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

New Contributor
Posts: 9
Registered: ‎07-26-2013
My Device: Blackberry Dev Alpha C, Blackberry Playbook, Developer

Blackberry Ads deadlock

Im developing a NME (NME uses a Blackberry port of SDL as backend) extension to display native ads for my Blackberry 10 native app.
Im able to compile my extension correctly but im getting a deadlock with this code:

char window_group_name[256];
snprintf(window_group_name, 256, "SDL-window-%d", getpid());

SDL_SysWMinfo sysInfo;
screen_window_t screen_window = NULL;
int a = SDL_GetWMInfo(&sysInfo);

    screen_window = sysInfo.window;

ad_banner = 0;
int ad_is_visible = 0;

if (BBADS_EOK != bbads_banner_create(&ad_banner, screen_window, window_group_name, BANNER_TEST_ZONE_ID))

The deadlock occurs when I call "bbads_banner_create", my app freezes and I have to kill it from Qde.
I fail to find the cause of the problem, maybe someone has some hint on this?

Please use plain text.
Regular Contributor
Posts: 205
Registered: ‎06-11-2013
My Device: Blackbery z10

Re: Blackberry Ads deadlock

I think it's a problem of BB ad serivce or ad component.

Please use plain text.