News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Linux C::B 5266 freezes after running a Qt application

Started by rickg22, May 28, 2009, 04:29:39 AM

Previous topic - Next topic

rickg22

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.

MortenMacFly

Quote from: rickg22 on May 28, 2009, 04:29:39 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?
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

rickg22

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?

MortenMacFly

Quote from: 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?
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?!
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

rickg22

Hmmm. I'll investigate further. Thanks for the help.