News:

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

Main Menu

The 07 January 2012 build (7678) is out.

Started by killerbot, January 07, 2012, 07:21:39 PM

Previous topic - Next topic

stefanos_

Question: I have found something interesting and I would like someone to explain to me this certain behavior.

I am under Windows XP, svn-7713, TDM's GCC 4.6.1 and as soon as I start Code::Blocks, I can see from Task Manager that it takes approximately 50,950K from memory, but as soon as I press the Minimize button it drops immediately to 5,250K ~= 6,200K.

Can someone explain this to me? Enlighten me please...

Cheers

oBFusCATed

Windows "feature", when something is minimized windows moves it out of memory.

All apps should behave the same.
(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!]

tgucm

Quote from: oBFusCATed on January 25, 2012, 03:48:25 PM
Windows "feature", when something is minimized windows moves it out of memory.

All apps should behave the same.

sorry if this seems obvious to everyone but could you explain that a little more for me please; i'm trying to wrap my head around the primary window operations in various o/s's atm :)

Also a quick offtopic: I just noticed that the nightly I installed last night ( my first install of C::B on this pc ) seems to be self-contained in the extracted folder; does this mean that C::B is self-contained and therefore can be used without installing it anywhere like on a usb stick?
--
C++ novice as of 2011... C++ 'intermediate' as of 2012... please be kind O:-)

oBFusCATed

Here is some discussion about it: http://channel9.msdn.com/Forums/TechOff/454007-Minimize-Window-Drop-its-Mem-Usage

C::B is not self contained, because by default it saves the settings in your home folder (%APP_DATA%/Codeblocks).
For self contained c::b you need c::b portable. Search the forum for more details.
(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!]

tgucm

Sweet, thanks!

hmm... here's a question..  if we extract the nightly build of C::B to a usb stick and then run it at least once on all the computers we are using ( linux box 1,2,3 xp box, win 7 box ect ) then would that also work as well?  -or- would the portable verison be best?

I ask because i'd like to not loose any features in favor of portability if that makes sence :)
--
C++ novice as of 2011... C++ 'intermediate' as of 2012... please be kind O:-)

Alpha

#20
You will be able to run Code::Blocks anywhere, however, without setting it up with a portable launcher, all settings/customizations will be left behind on whatever machine it is run on.

See FAQ - How do I make Code::Blocks portable?

From my experience, running it in a portable mode does not lose any functionality.  (I use a slightly modified launcher based on PortableApps.com.)

Quote from: tgucm on January 25, 2012, 09:38:08 PM
( linux box 1,2,3 xp box, win 7 box ect )
Note that you will need a different set of executables for Linux and Windows (although portable launchers could share the same set of settings).

stefanos_

Bug found: Open a project, select a file either with mouse or keyboard keys, press enter. Instead of opening the file it minimizes everything to workspace.

Code::Blocks version: svn-7713
Compiler: TDM's GCC 4.6.1
OS: Windows XP Professional SP3 (32-bit)

MortenMacFly

Quote from: stefanos_ on January 26, 2012, 09:18:22 AM
Bug found: Open a project, select a file either with mouse or keyboard keys, press enter. Instead of opening the file it minimizes everything to workspace.
Works fine here..?!
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]

renega_666

QuoteBug found: Open a project, select a file either with mouse or keyboard keys, press enter. Instead of opening the file it minimizes everything to workspace.

Are you speaking about the project tree? If yes I must say that I have the same bug on Windows Xp and Windows 7 since rev 7550(I haven't tested the latest nightly yet)

MortenMacFly

Quote from: renega_666 on January 26, 2012, 01:13:08 PM
(I haven't tested the latest nightly yet)
That is your fault. If you do so, it will work. It was fixed recently.
Please: Before reporting bugs, always try the latest nightly.
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]

renega_666

Ok I've just tested with the latest nightly(7678) (debugger branch) and the bug is still here...

Btw I now have troubles with the debugger watches but I will report it in the proper forum after some more tests.

LETARTARE

#26
QuoteBug found: Open a project, select a file either with mouse or keyboard keys, press enter. Instead of opening the file it minimizes everything to workspace.

I also have this problem on my setup with r7711.
Press again 'ENTER' gives the complete tree.


CB-13834, plugins-sdk-2.25.0 : Collector-2.6.5, AddOnForQt-5.1.2
1- Win7 Business Pack1 64bits : wx-3.2.8, gcc-15.2.0,
2- OpenSuse::Leap-15.6-64bits : wx-3.2.8;gtk3-u, gcc-15.2.0,
=> !! The messages are translated by 'Deepl'

stefanos_

Just finished compiling the latest revision (7715); the issue remains the same. I go to Management > Project Name > Sources > main.cpp, pressing enter and toggle tree to Workspace. Pressing enter again and unfolds the project up to the main.cpp

MortenMacFly

Quote from: stefanos_ on January 26, 2012, 03:37:16 PM
Just finished compiling the latest revision (7715)
Are you sure this revision:
http://svn.berlios.de/wsvn/codeblocks/?op=revision&rev=7655&peg=7715
...is incorporated? Because this is the actual fix. It works on windows. Maybe this is a platform related issue?
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]

LETARTARE

QuoteJust finished compiling the latest revision (7715); the issue remains the same. I go to Management > Project Name > Sources > main.cpp, pressing enter and toggle tree to Workspace. Pressing enter again and unfolds the project up to the main.cpp

and on my pc too ...(r7715)
CB-13834, plugins-sdk-2.25.0 : Collector-2.6.5, AddOnForQt-5.1.2
1- Win7 Business Pack1 64bits : wx-3.2.8, gcc-15.2.0,
2- OpenSuse::Leap-15.6-64bits : wx-3.2.8;gtk3-u, gcc-15.2.0,
=> !! The messages are translated by 'Deepl'