Code::Blocks Forums

User forums => Help => Topic started by: rickg22 on May 28, 2009, 04:29:39 am

Title: Linux C::B 5266 freezes after running a Qt application
Post by: rickg22 on May 28, 2009, 04:29:39 am
Hi. I'm trying to figure out what went wrong here.

I'm building a Qt4 application. The application runs fine when being called from the commandline.

However, if I execute it from within C::B (rev. 5266, from debian/mepis repo), the application just sits there, and C::B tells me that it's still running. Only if I quit C::B, the application quits. Otherwise it's sitting right there in the process table.

Any ideas of what might be happening? Is it a known C::B bug, or is it my app?

Notice that my app also writes to stdout.
Title: Re: Linux C::B 5266 freezes after running a Qt application
Post by: MortenMacFly on May 28, 2009, 09:37:37 am
Any ideas of what might be happening? Is it a known C::B bug, or is it my app?
Never heard of such. Can you create a minimal sample, probably?
Title: Re: Linux C::B 5266 freezes after running a Qt application
Post by: rickg22 on May 29, 2009, 12:48:41 am
Grrr... I can't create a minimal sample. So it must be my program. But why does it only happen with C::B and not when being run from the shell?

Edit: When I changed the application type from the project properties from "GUI Application" to "Console Application", the program no longer hangs on exit! Any ideas?
Title: Re: Linux C::B 5266 freezes after running a Qt application
Post by: MortenMacFly on May 29, 2009, 08:45:27 am
Grrr... I can't create a minimal sample. So it must be my program. But why does it only happen with C::B and not when being run from the shell?
Any of this mystic LD_LIBRARY_PATH issue? Can you prompt the env-vars in question from within your app when running in a console and running in C::B? Probably you see any difference?!
Title: Re: Linux C::B 5266 freezes after running a Qt application
Post by: rickg22 on May 29, 2009, 03:22:23 pm
Hmmm. I'll investigate further. Thanks for the help.