Code::Blocks Forums

User forums => Help => Topic started by: Brute on January 21, 2015, 11:06:14 pm

Title: CB crash when using custom project template
Post by: Brute on January 21, 2015, 11:06:14 pm
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 (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.
Title: Re: CB crash when using custom project template
Post by: MortenMacFly on January 23, 2015, 09:02:50 am
https://mediacru.sh/download/C/CRA6zWq4B3Dk.zip (https://mediacru.sh/download/C/CRA6zWq4B3Dk.zip)
Error: 404 Not Found
Title: Re: CB crash when using custom project template
Post by: Brute on January 23, 2015, 07:38:31 pm
https://mediacru.sh/download/C/CRA6zWq4B3Dk.zip (https://mediacru.sh/download/C/CRA6zWq4B3Dk.zip)
Error: 404 Not Found

uff, sorry about that mediacru.sh is supposed to be privacy related upload site but it obviously sucks, here is new working link:
http://s000.tinyupload.com/index.php?file_id=64702485307529836138 (http://s000.tinyupload.com/index.php?file_id=64702485307529836138)
Title: Re: CB crash when using custom project template
Post by: stahta01 on January 25, 2015, 04:03:39 am
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.
 
Title: Re: CB crash when using custom project template
Post by: stahta01 on January 25, 2015, 04:38:27 am
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.