stuck on segfault with my first plugin

John Eikenberry <[email protected]>
Newsgroups gmane.comp.gnome.apps.gkrellm
Message-ID <[email protected]>
I'm currently working on a plugin for a simple mpd controller/viewer. I'm
doing it both as a way to practice my C (its been years) and because it is
something I'd like to have. I do know about the other mpd plugin, but I'm
looking to do something much simpler and, as I said, as practice.

Anyways... I'm using libmpd 0.12 as my way of talking to mpd. To test my
use of it I wrote up a simple program that I could run from the command
line. It works fine. I also have a simple skeletal gkrellm plugin based on
the demos that works (displays the scrolling text). But once I move the
code that calls libmpd to get the song title and try to use it to get the
text, my plugin segfaults. It segfaults on the first line accessing the
song information returned by libmpd.

I haven't worked with C, other than trivial ways, since school (>10 years).
So I am a bit rusty and am kind of stuck on how to deal with this.

I can provide more information (source, backtraces, etc) as necessary, but
thought that maybe there were some common gotchas that people could tip me
off on first.

Thanks.

-- 

John Eikenberry
[[email protected] - http://zhar.net]
______________________________________________________________
"It is difficult to produce a television documentary that is both incisive
and probing when every twelve minutes one is interrupted by twelve dancing
rabbits singing about toilet paper." - Rod Serling


_______________________________________________
Gkrellm mailing list
[email protected]
http://ninja.linux-phreak.biz/mailman/listinfo/gkrellm
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.