Author Topic: CB crash when using custom project template  (Read 2761 times)

Offline Brute

  • Single posting newcomer
  • *
  • Posts: 8
CB crash when using custom project template
« 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

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.
« Last Edit: January 21, 2015, 11:08:20 pm by Brute »

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Brute

  • Single posting newcomer
  • *
  • Posts: 8
Re: CB crash when using custom project template
« Reply #2 on: January 23, 2015, 07:38:31 pm »
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

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: CB crash when using custom project template
« Reply #3 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.
 
« Last Edit: January 25, 2015, 04:31:39 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: CB crash when using custom project template
« Reply #4 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.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org