Re: bookmarkexample
From: Vincent Thomasset <vincent.thomasset@xxxxxxxxx>
Date: Tue, 21 Aug 2007 22:01:46 +0200 (CEST)
Le Tue, 21 Aug 2007 19:54:14 +0800,
lerosua <lerosua@xxxxxxxxx> a écrit :

> 
> hi:
> 
>       i think it is segfaults when the handleBookmarks called.
>       because i add printf() in onConnect() around the 
>       b->requestBookmarks() like this;
> 
> 
>       virtual void onConnect()
>       {
>       printf("Connect sucess\n");
>       b->requestBookmarks();
>       printf("requestBookmarks\n");
> 
>       }
> 
>       the example program can execute all the printf. and wait a
>       minute the program segfaults. 

Hi,

Could you provide a full backtrace for the segfault ?

cd src/examples
ulimit -c unlimited
./bookmarkstorage_example # should generate a core file
gdb bookmarkstorage_example core
bt full # in gdb

Cheers,
Vincent