[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [PROGRAMMERING] lidt knas med gtk_init



Egon Andersen wrote:

Anders Gnistrup wrote:

Hej på listen

SNIP<>

Umiddelbart ser det ud til at være lige efter bogen, dog ville jeg checke om threads er supporteret ved at kalde g_thread_supported() først og checke resultatet af dette kald.

Med venlig hilsen
Egon Andersen

Hej Egon


Ja, den prøvede jeg også ved at ændre lidt i programmet.

/* this main is only used for testing */
int main(int argc, char *argv[])
{
 GtkWidget *window;
 GtkWidget *drawing;
 GdkPixmap *pixmap;

 if( !g_thread_supported() )
   {
     g_thread_init(NULL);
     gdk_threads_init();
     printf("g_thread supported\n");
   }
 else
   {
     printf("g_thread NOT supported\n");
   }

 if (!gtk_init_check(&argc, &argv))
   {
     printf("Could not init gtk_init");
   }

Her er outputtet fra en promt

g_thread supported
Segmentation fault

Så det altså stadig gtk_init_(check) der fejler. Meget underligt. Jeg har dog en ide om at det har noget med den mutex at gøre. noget der sikkert ikke er blevet initialiceret.....

Hilsen Anders



 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 22:44 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *