News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

CB crash when using custom project template

Started by Brute, January 21, 2015, 11:06:14 PM

Previous topic - Next topic

Brute

Hi, I'm coding with gtkmm GUI toolkit on Windows and since gtkmm requires a lot of project setup (includes, libs etc...) I created my own project template with all the needed settings and few source files so that when I create a new project from template I start with complete window...

There is a problem when creating a project from this template, CB will hang and stop responding until manually shut down and restarted.
Here is my project template in question:
https://mediacru.sh/download/C/CRA6zWq4B3Dk.zip

I hope you'll will be able to reproduce this error and tell what to do to prevent the crash.

details:
my CB version is 13.12 (full installation)
project template is installed in C:\Users\Admin\AppData\Roaming\CodeBlocks\UserTemplates
Creating a project from this template for first few times work just fine, after some time it causes CB to crash for some unknown reason.

MortenMacFly

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]


stahta01

#3
Edit: My post was off topic; My crash was on saving the template. The OP crash is on using the template.

Guess based on the posted info; did NOT follow any links.
If the Project Description has illegal chars in it; on windows I get a related crash like result.

I posted a patch somewhere. I will see if I can find it.

If my guess is the cause; make sure the filename to be used to save the template has only letters and numbers in it.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

stahta01

Where do you define the location of "INSTALLDIR"?

I have never used one custom variable in the definition of another custom variable.
This would be my first wild guess of what cause the crash.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]