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

Posts: 123
Registered: ‎01-11-2013
My Device: BlackBerry z10
My Carrier: Docomo
Accepted Solution

Search location deatails from geocode

Hi, All


    How to search location deatails from  any geo code ? , i implemented some code but my application not execute , i got some error some like this in console

" Process 255758577 (searchManagerEx) terminated SIGSEGV code=1 fltno=11 ip=7874c452(/base/usr/lib/libQtLocationSubset.so.1.0.0@_ZN16QtMobilitySubset17QGeoSearchManager7geocodeERKNS_11QGeoAddressEPNS_16QGeoBoundingAreaE+0x1) mapaddr=0000c452. ref=0000000a" 


but it crash my application. dont know where am doing wrong. Please suggest me a solution


Thanks in Advance .


Below is my code

code in my .pro file 

APP_NAME = searchManagerEx

CONFIG += qt warn_on cascades10
CONFIG += mobility
LIBS +=  -lbbdata -lQtLocationSubset -lbbcascadesmaps -lbbplatform -lGLESv1_CM  -lbb   

symbian: {


.hpp file 
	Q_INVOKABLE void searchData();
private slots:
	void searchResults(QGeoSearchReply *reply);
	void searchError(QGeoSearchReply *reply, QGeoSearchReply::Error error, const QString &errorString);
    QGeoSearchManager *searchManager;
    QGeoAddress searchAddress;
    QGeoSearchReply *reply;

.cpp file
void SearchManagerEx::searchData() {

QGeoSearchReply *reply = searchManager->geocode(searchAddress);

	if (reply->isFinished()) {

		if (reply->error() == QGeoSearchReply::NoError) {

		} else {
			searchError(reply, reply->error(), reply->errorString());


void SearchManagerEx::searchResults(QGeoSearchReply *reply) {

	qDebug()<<"Replay Data in searchResults= " << reply ;
	//	        // ... now we have to make use of the places ...
//	    	        reply->deleteLater();
void SearchManagerEx::searchError(QGeoSearchReply *reply,
		QGeoSearchReply::Error error, const QString &errorString) {

	 //	        // ... inform the user that an error has occurred ...
//	    	        reply->deleteLater();


Posts: 17,025
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Search location deatails from geocode

you get a segfault, which usually means that a null pointer is accessed somewhere.
where do you instantiate your searchManager? Generally, check for null pointers.
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter