• 0

Memory Eater


Question

I'm working on a network statistics application...

The EXE is about 15kB large, when I start it then the task manager tells me that it use 2900kB of memory.

But if I minimize it then it use somewhere around 150kB.

If then restore the window to normal position then it use 1000-1300kB depending on the number of entries in the lists(TCP sockets and UDP listeners)

To me it seems to be some graphics bugs... but I don't use any special painting routines, I just create the controls and control them using normal messages.

It uses about 1-3% of my CPU (the app updates everything every second).

(Duron 800MHz)

Someone that have Windows 2000 Pro just like me said that it used 20-30% of his CPU(it's faster than mine)

I use no compression nor other things that modifies the EXE.

This is really wierd... :cry:

Check it here: http://w1.404.telia.com/~u40434892/TDNetStats.exe

Link to comment
Share on other sites

14 answers to this question

Recommended Posts

  • 0

I got affraid there... I don't want my applications to use too much memory.

Anyway...

Someone that tested this said that it used much CPU... 10 times too much, compared to my system.

Can anyone check CPU usage on their machine?

It's 1-3% on my Duron 800MHz

:cry:

Link to comment
Share on other sites

  • 0
It is reporting 0-1%. This is negligble. Nothing at all to worry about. Good job! :thumbup:

Thanks...

But someone with a 1400MHz CPU reports 30% usage...

There's some loops that's executed every second, maybe there's something that screws them up?

I wrote this in ASM you know... :unsure:

(I just fixed the interface list where the items in the list were in reversed order)

Edited by Tobbe
Link to comment
Share on other sites

  • 0
I wrote this in ASM you know... :unsure:

ASM! Yay, finally another assembly programmer here :)

Too many people are into high level languages like visual basic these days to get out of the hardships that programmers once endured before HLLs were invented.

Sorry, just had to add my two cents :D

Link to comment
Share on other sites

  • 0
I wrote this in ASM you know... :unsure:

ASM! Yay, finally another assembly programmer here :)

Too many people are into high level languages like visual basic these days to get out of the hardships that programmers once endured before HLLs were invented.

Sorry, just had to add my two cents :D

Yeah... Microsoft is dumping non-object oriented programming languages behind...

I want a list of only APIs... I have Platform SDK and it's full of useless objects. :(

Have you done anything intresting in ASM for Windows? :happy:

Edited by Tobbe
Link to comment
Share on other sites

  • 0

I've added and fixed a few things and I have removed reduntant code too... so I hope that it works better now.

BTW... it only works in Windows NT4, 2000 and XP

Some service packs required, I don't remember which.

Memory was never a problem but some unlucky guys get 30-50% CPU usage, their CPUs are faster than mine.

Download TDNetStats

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.