Hi Martyn, Here is what am doing inside my application : g_type_init(); GError *error = NULL; m_connection = tracker_sparql_connection_get_direct(&error); qDebug() << error->message; if(m_connection != NULL) { gchar *query; query = g_strdup_printf ("SELECT ?url WHERE { ?song a nmm:MusicPiece ; nie:isStoredAs ?as . ?as nie:url ?url . }"); if(0 != query) m_cursor = tracker_sparql_connection_query (m_connection, query, NULL, &error); else printf("Query is null \n"); if(0 != error) { g_print("Error Message %s\n", error->message); //qDebug() << error->message; g_free (query); } else printf("No error returned from the SPARQL\n"); if(0 != m_cursor) print_cursor (m_cursor, "No classes were found to match search term", "Classes", TRUE, l_list); else printf("cursor is NULL \n"); } else { qDebug() << "connection not establisheds"; } -----Original Message----- On 04/08/11 13:31, suparno bose wipro com wrote: > Attaching the file Thanks, > -----Original Message----- > From: Suparno Bose (WT01 - Manufacturing& Hi Tech) > Sent: Thursday, August 04, 2011 6:00 PM > To: 'Martyn Russell' > Cc: tracker-list gnome org > Subject: RE: [Tracker] Tracker-WARNING **: file is encrypted or is not > a database > > Sorry Martyn , > I did some mistake. Please find my new log attached. > This time it worked fine from the command line but not from the > application . I see, so how are you doing it form the application then? The command line tools are there to help you sanity check what you're application might be doing. -- Regards, Martyn Founder and CEO of Lanedo GmbH. |