LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-20-2004, 04:54 PM   #1
The_Nerd
Member
 
Registered: Aug 2002
Distribution: Debian
Posts: 540

Rep: Reputation: 32
g_thread_init SEGV


Hi, I have a program I wrote in GTK 2.0, it works great. But now I decided I want to add another thread to do a proccess in the background, however when I call g_thread_init(NULL), the programs exits with SEGV? Whats wrong?

I tried looking on google, and someone suggested calling gtk_init before g_thread_init, I tried this but it doesn't make any difference. Please help!
 
Old 06-20-2004, 05:00 PM   #2
The_Nerd
Member
 
Registered: Aug 2002
Distribution: Debian
Posts: 540

Original Poster
Rep: Reputation: 32
Never mind. I was linking my program to gthread instead of gthread-2.0

 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Xorg server (fglrx) SEGV calling openGL finidi Linux - Hardware 4 06-29-2005 10:55 AM
GVim, menus, refresh menu and SEGV Weirdofreak Linux - Software 0 11-07-2004 11:10 AM
g++ caused a SEGV! Sweet! The_Nerd Programming 2 06-23-2004 06:39 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration