debug

Esteban Cacavelos <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
Hi there, i have the following problem:

i am trying to get information about strings through octstr_dum function but
the function never returns.

the call is made from a thread that is created in the main program.



int main (int argc, char *argv[])
{

  Octstr *a;

  int cf_index;

   pthread_t trhdReadBD;

   gwlib_init();
   a = octstr_format("sdfdsf");

   octstr_dump(a, 0); /*that works correctly*/


pthread_create (&trhdReadBD, NULL, &vo_ptrReadBD,NULL);
   pthread_join (trhdReadBD, NULL);


  return 0;
}

void *vo_ptrReadBD(void *unused){

Octstr *string



string = octstr_format("sdfdsf");

/*the string is correctly charged*/
printf ("the string is : %s",octstr_get_cstr(string)  );

   octstr_dump(string, 0);/*this doesn't work correctly*/

}

Thanks !
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.