Welcome, Guest. Please login or register.
December 09, 2009, 06:02:34 PM

Login with username, password and session length

341295 Posts
37724 Topics
85645 Members

Latest Member: dlivingstone

Search:     Advanced search | Tag Cloud
+  Welcome to the Comodo Forum
|-+  Archive Boards
| |-+  Comodo Firewall
| | |-+  Feedback/Comments/Announcements/News
| | | |-+  CFP uses too many GDI objects
« previous next »
Pages: [1] Go Down Print
Author Topic: CFP uses too many GDI objects  (Read 1618 times)
Raccoon
Comodo Member
**
Offline Offline

Posts: 25


« on: July 18, 2008, 01:27:07 AM »

If you open your Windows Task Manager, you will find that CFP.exe uses a horrendous amount of GDI and USER objects, more than even Firefox and Adobe Photoshop put together.

In the Windows Task Manager for XP (and probably Vista), goto the Processes tab and select the menu View > Select Columns.  Check off both GDI Objects and USER Objects, or just check mark all the boxes to see every column of data.

If you click on the GDI Objects or USER Objects column header, it will sort your processes by these columns.  You will find that CFP uses more resources than any other application installed on your computer.  I have tried launching some of the largest applications I have, including Firefox, Photoshop and Autocad to name a few, and none of them come close.

Comodo Firewall Pro is a Resource Hog.

oink!
Logged
panic
Global Moderator
Comodo's Hero
*****
Offline Offline

Posts: 7601


... and I say to myself, "What a wonderful world"


« Reply #1 on: July 18, 2008, 02:22:16 AM »

Wait till you see their AV.Gulp! Wink
Logged

As your mums would say, "If you can't play nice with all the other kiddies, go home".
All users are asked to please read and abide by the  Comodo Forum Policy.
If you don't like it, don't use the forum.
fOrTy_7
Comodo's Hero
*****
Offline Offline

Posts: 327


« Reply #2 on: July 18, 2008, 02:28:32 AM »

I've just checked it on my system and CFP isn't the most GDI resource hungry application (see the screenshot). Grin
I assume you mean that CFP devs should use some container for all this bitmaps and icons. Would it significantly reduce resource usage or increase performance ?
« Last Edit: July 18, 2008, 02:32:23 AM by fOrTy_7 » Logged

Windows XP Pro SP3 32-bit
Comodo Internet Security 3.13.121240.574
gibran
Average User
Comodo's Hero
*****
Offline Offline

Posts: 5063


A bad workman always blames his tools


« Reply #3 on: July 18, 2008, 03:53:41 AM »

I've just checked it on my system and CFP isn't the most GDI resource hungry application (see the screenshot). Grin
I assume you mean that CFP devs should use some container for all this bitmaps and icons. Would it significantly reduce resource usage or increase performance ?


I guess devs already use containers. That's why It is possible to change CFP GUI resouces using CFP skinning tool.
Logged

"In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move."- Douglas Adams
fOrTy_7
Comodo's Hero
*****
Offline Offline

Posts: 327


« Reply #4 on: July 18, 2008, 04:23:29 AM »

I think they don't use any containers yet. Just look into this directory:

%appdata%\Comodo\Firewall Pro\Data\ResFiles
Logged

Windows XP Pro SP3 32-bit
Comodo Internet Security 3.13.121240.574
gibran
Average User
Comodo's Hero
*****
Offline Offline

Posts: 5063


A bad workman always blames his tools


« Reply #5 on: July 18, 2008, 04:49:55 AM »

I think they don't use any containers yet. Just look into this directory:

%appdata%\Comodo\Firewall Pro\Data\ResFiles

I guess this is a misunderstanding caused by our different definition of container.

I kept my post short but I would have referenced resfiles folder as well.

CFP GUI resources are stored in CFPres.dll and decompressed on cfp startup.
%appdata%\Comodo\Firewall Pro\Data\ResFiles stores those resources.

The containers I mentioned are likely programmig picture containers that reference those files in the resfiles folder.
I guess that each one of these continer load one graphic resource and counts as one GDI object.
Loading these resources at startup is what makes possible to edit CFP GUI using CFP skinning tool.
Logged

"In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move."- Douglas Adams
Raccoon
Comodo Member
**
Offline Offline

Posts: 25


« Reply #6 on: July 18, 2008, 06:02:54 PM »

I don't credit myself as an expert in efficient code, but I believe the normal procedure is to destroy GDI objects when they are not being displayed -- such as 99% of the time that CFP is running (quietly in the background).

Perhaps it would be best if CFP existed as a Windows Service detached from the GUI front end, allowing the user to close the GUI when it is not in use.  This would also be consistent with other administration tools of its kind.  But if nothing else, the GDI objects should be destroyed when minimized or sent to the tray.
Logged
gibran
Average User
Comodo's Hero
*****
Offline Offline

Posts: 5063


A bad workman always blames his tools


« Reply #7 on: July 18, 2008, 06:39:57 PM »

I don't credit myself as an expert in efficient code, but I believe the normal procedure is to destroy GDI objects when they are not being displayed -- such as 99% of the time that CFP is running (quietly in the background).

I guess Devs had some reason to do that. Besides CFP memory usage is quite low.

Even if CFP was coded to behave like few alertless administration tools of different kind I guess someone would complain about the time to load the GUI.
 
Logged

"In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move."- Douglas Adams
3xist
Guest
« Reply #8 on: July 19, 2008, 06:33:16 AM »

Wait till you see their AV.Gulp! Wink

+1  lol
Logged
Tags:
Pages: [1] Go Up Print 
« previous next »
Jump to:  

SSL Certificate Free Virus Removal Firewall
Page created in 0.039 seconds with 19 queries.
Powered by SMF 1.1.11 | SMF © 2006, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks
Design by 7dana.com