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
Contributor
Posts: 26
Registered: ‎06-09-2013
My Device: N serial
My Carrier: NIM

why my app crush in GeoShape::setAltitudeMode

 

below is the API ref link:

http://developer.blackberry.com/cascades/reference/bb__platform__geo__geoshape.html#function-setalti...

 

Code:

bb:Smiley Tonguelatform::geo::GeoPolygon* gPolygon = new GeoPolygon("id-the-polygon");

...

gPolygon->setOuterBoundary(...);

gPolygon->setInnerBoundaries(...);

...

gPolygon->setAltitudeMode(bb:Smiley Tonguelatform::geo::AltitudeMode::RelativeToGround);

...

mapView->mapData()->add(gPolygon);

 

 

 

debug info:

385                             gPolygon->setAltitudeMode(bb:Smiley Tonguelatform::geo::AltitudeMode::RelativeToGround);
(gdb) n

Program received signal SIGSEGV, Segmentation fault.
0x780b33a0 in ?? ()

 

Same problem in GeoPolyLine

Contributor
Posts: 26
Registered: ‎06-09-2013
My Device: N serial
My Carrier: NIM

Re: why my app crush in GeoShape::setAltitudeMode

[ Edited ]

BTW,

the GeoPolygon::setInnerBoundaries does NOT work...

the shape appears, but only outer boundary is drawed and filled with color

Highlighted
Developer
Posts: 39
Registered: ‎10-13-2010
My Device: LE Z10
My Carrier: Virgin Mobile

Re: why my app crush in GeoShape::setAltitudeMode

I can replicate this crash with all AltitudeMode values.

 

Off-topic, but what Device/OS build combination are you using to get the GeoPolygon to display even the outter shape? I don't get any display on the simulator (10.2.0.339) or Dev Alpha C (10.2.0.341).