Hi, I found out that this program executes without any problem if it's executed from the command line, and so I guess there is something wrong with ide I'm using ( Kdevelop ). If I found out what was wrong I'll post here. Thanks for all the help, Andre __________________________________ Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus