Author Topic: Long startup times  (Read 581 times)

Offline Das_Ed

  • Single posting newcomer
  • *
  • Posts: 1
Long startup times
« on: May 24, 2017, 04:58:07 pm »
Hello everyone,

i am inexperiencing issues with Codeblocks. The startup times are varying between fast (about 3 seconds) and very long (about 20 seconds). The projects are small projects consisting of one C source file (less than 100 lines).

I am having a hard time reproducing the error so I thought that maybe someone is experiencing similar prolems or has an idea to solve them.

What I tried:
- Reinstalling Codeblocks
- Deativating plugins, removing plugin dlls from Codeblocks folder.
- Deactivate the restriction to a single running instance

I tried profilling the error using Process Monitor and I am seeing a lot of registry calls that are related to .zip files like this one:

15:52:23,9579565   codeblocks.exe   5624   RegQueryKey   HKCU\Software\Classes   SUCCESS   Query: Name
15:52:23,9579744   codeblocks.exe   5624   RegQueryKey   HKCU\Software\Classes   SUCCESS   Query: HandleTags, HandleTags: 0x1
15:52:23,9579930   codeblocks.exe   5624   RegQueryKey   HKCU\Software\Classes   SUCCESS   Query: HandleTags, HandleTags: 0x1
15:52:23,9580069   codeblocks.exe   5624   RegQueryKey   HKCU\Software\Classes   SUCCESS   Query: Name
15:52:23,9580258   codeblocks.exe   5624   RegOpenKey   HKCU\Software\Classes\.zip   NAME NOT FOUND   Desired Access: Read

Maybe this is some indication of the error?

My system:
- Codeblocks 16.01
- Windows 10 (64-Bit)
- i7 2,6 gHz, 16 Gig RAM

I am using Codeblocks during lectures for live programming so the issue is both pressing and annoying :)

Any ideas?

Thanks a lot and kind regards,

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 10843
    • Travis build status
Re: Long startup times
« Reply #1 on: May 24, 2017, 06:01:52 pm »
Why do you need to restart Code::Blocks, so often?
Why don't you just start it once and then load projects in it?

The problem is known loading plugins is slow in wx28 builds. In wx3.x builds it is better.
To get better startup you need to remove whole plugins - dll and resource file.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]