If you are using Internet Explorer, please remove blackberry.com from your compatibility view settings.

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
Trusted Contributor
pigling
Posts: 104
Registered: ‎02-05-2012
My Device: Bold 9900 (primary) Z10 LE (secondary)
My Carrier: Singtel

[solved]SIGSEGV fault

[ Edited ]

When testing SDL-based LBreakout on Q10:

Process 19493092 (LBreakout) terminated SIGSEGV code=1 fltno=11 ip=01a16660(/usr/lib/ldqnx.so.2@__cortex_a9_strlen+0xf) mapaddr=00066660. ref=000010cd

 main.cpp:

#ifdef HAVE_CONFIG_H
#include "../config.h.in"
#endif

#include <stdlib.h>
#include "game.h"
#include "sndsrv.h"

#define SRC_DIR "./"
#define VERSION 010315

char    *src_dir = SRC_DIR;
char    *home_dir;
int     fast_quit = 0;

int main(int argc, char *argv[])
{
    // version //
    printf("LBreakout %s\nCopyright 2000 Michael Speck\n", VERSION);
    printf("Level Charts by Jean-Philippe Martin\n");
    printf("Enjoy the game!\n-----\n");

    home_dir = getenv("HOME");
#ifdef SOUND
    SndSrv_Init(16);
#endif
	Game *game = new Game();
	game->Run();
	delete game;
#ifdef SOUND
	SndSrv_Quit();
#endif
	return 0;
}

 Even the first printout can't work properly. 

Need help please. Thanks.

Please use plain text.
Trusted Contributor
pigling
Posts: 104
Registered: ‎02-05-2012
My Device: Bold 9900 (primary) Z10 LE (secondary)
My Carrier: Singtel

Re: [solved]SIGSEGV fault

#define VERSION "010315"

 Done.:Surrender:

Please use plain text.