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
Developer
DNSalehi
Posts: 47
Registered: ‎01-26-2011
My Device: Not Specified
Accepted Solution

Cannot call camera functions

The code builds fine, but when it gets the calling any camera functions using camera-> .. It gets stuck and crashes.

I'm sure its a noob mistake, not too comfortable with QML 

 

Here is my cpp code

http://pastebin.com/p8San8jw

 

and this is my QML code

http://pastebin.com/Mv9sWgZv

Please use plain text.
Developer
slashkyle
Posts: 820
Registered: ‎10-16-2012
My Device: Red Z10
My Carrier: Telus

Re: Cannot call camera functions

if (!qml->hasErrors()) {
    		Page *appPage = qml->createRootObject<page>();

    		if (appPage) {

    			app->setScene(appPage);

 those if statements were in the sample source... that was the only thing that varied from yours, so maybe try throwing those in and see if it does the trick... 

Please use plain text.
Developer
DNSalehi
Posts: 47
Registered: ‎01-26-2011
My Device: Not Specified

Re: Cannot call camera functions

No luck :smileysad:

Please use plain text.
Developer
slashkyle
Posts: 820
Registered: ‎10-16-2012
My Device: Red Z10
My Carrier: Telus

Re: Cannot call camera functions

if it worked on beta 3, it could just be beta 4 my app went crazy... beta 5 is due out soon :smileyvery-happy:

Please use plain text.