Skip to content
This repository was archived by the owner on Sep 4, 2019. It is now read-only.
This repository was archived by the owner on Sep 4, 2019. It is now read-only.

Deadlock when using Blackberry Ads library #49

Description

@DanielUranga

Im developing a NME (NME uses 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;
SDL_VERSION(&sysInfo.version);
screen_window_t screen_window = NULL;
int a = SDL_GetWMInfo(&sysInfo);

if(a>0)
{
    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))
{
    return;
}

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 is this a SDL bug or could find a way to solve from the SDL side?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions