Author Topic: TrayInfo x86 and x64 (Updated MemStat)  (Read 304 times)

fearless

  • Member
  • ***
  • Posts: 452
    • LetTheLightIn
TrayInfo x86 and x64 (Updated MemStat)
« on: July 23, 2019, 08:47:12 AM »
I done some work on the ModernUI_TrayMenu controls, and think I fixed the issue that might have caused leaks in the x64 version. I rewrote the MemStat application which is now called TrayInfo, it works similar to MemStat, but also does cpu load as well. The app starts minimized to the tray.





I built an x86 and x64 version. Attached is the RadASM projects for each which includes the compiled app

The ModernUI_TrayMenu libraries can be downloaded from https://github.com/mrfearless/ModernUI/blob/master/Release/ModernUI_TrayMenu.zip?raw=true and https://github.com/mrfearless/ModernUI64/blob/master/Release/ModernUI_TrayMenu.zip?raw=true

The x86 version will show cpu load as a decimal point if < 10, the x64 version doesn't show this as I was using Raymond's fpu.lib for x86 with the FpuFLtoA function, and I don't think Raymond's fpu library is available for x64

If the cpu load or mem load reaches 90+ then the text color should change to red in the icon in the tray.
« Last Edit: July 30, 2019, 03:04:11 AM by fearless »
fearless

CM690II Case, HX1000 PSU, Asus Z97, Intel i7-4790K, Seidon 120v Cooler, 16GB DDR3, MSI GTX 980TI

My Github  Twitter

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 6509
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: TrayInfo x86 and x64 (Updated MemStat)
« Reply #1 on: July 24, 2019, 03:13:06 AM »
I only checked the 64 bit version but it works fine here and the update intervals work correctly.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy:

HSE

  • Member
  • *****
  • Posts: 1059
  • <AMD>< 7-32>
Re: TrayInfo x86 and x64 (Updated MemStat)
« Reply #2 on: July 24, 2019, 07:15:42 AM »
Hi fearless!

Res directory fall out of examples' zip.  :sad:

fearless

  • Member
  • ***
  • Posts: 452
    • LetTheLightIn
Re: TrayInfo x86 and x64 (Updated MemStat)
« Reply #3 on: July 24, 2019, 07:41:09 AM »
Hi HSE,

Thanks for spotting that. Yes, it appears I forgot those Res folders - I've updated the attachments in the first post.
fearless

CM690II Case, HX1000 PSU, Asus Z97, Intel i7-4790K, Seidon 120v Cooler, 16GB DDR3, MSI GTX 980TI

My Github  Twitter

HSE

  • Member
  • *****
  • Posts: 1059
  • <AMD>< 7-32>
Re: TrayInfo x86 and x64 (Updated MemStat)
« Reply #4 on: July 24, 2019, 09:11:14 AM »
 :thumbsup:

Thanks.

AW

  • Member
  • *****
  • Posts: 2173
  • Let's Make ASM Great Again!
Re: TrayInfo x86 and x64 (Updated MemStat)
« Reply #5 on: July 24, 2019, 05:08:08 PM »
This type of programs are implicitly asking to have an option to be launched at startup.  :icon_idea:

LiaoMi

  • Member
  • ****
  • Posts: 557
Re: TrayInfo x86 and x64 (Updated MemStat)
« Reply #6 on: July 29, 2019, 06:31:26 PM »
Hi fearless,

bug with frozen memory indicator is still present, if you enable and disable the memory option, for 3 seconds a second indicator appears with the correct value, but then it closes and everything stays the same.

fearless

  • Member
  • ***
  • Posts: 452
    • LetTheLightIn
Re: TrayInfo x86 and x64 (Updated MemStat)
« Reply #7 on: July 29, 2019, 09:00:57 PM »
I haven't been able to reproduce this and I have left my copy running since 22/07/2019. I've tried to cause it to crash or cause other odd issues, but still nothing like what your describing. I'm not sure what I can suggest to fix this issue.
fearless

CM690II Case, HX1000 PSU, Asus Z97, Intel i7-4790K, Seidon 120v Cooler, 16GB DDR3, MSI GTX 980TI

My Github  Twitter

LiaoMi

  • Member
  • ****
  • Posts: 557
Re: TrayInfo x86 and x64 (Updated MemStat)
« Reply #8 on: July 29, 2019, 11:22:47 PM »
I haven't been able to reproduce this and I have left my copy running since 22/07/2019. I've tried to cause it to crash or cause other odd issues, but still nothing like what your describing. I'm not sure what I can suggest to fix this issue.

Put the system into sleep mode, log in again and wait, should work exactly as I described ... Found another bug, when the memory indicator is on, then if you select it with the mouse, in this case, the indicator disappears  :badgrin: This happens when you restart the program to avoid the first bug.






fearless

  • Member
  • ***
  • Posts: 452
    • LetTheLightIn
Re: TrayInfo x86 and x64 (Updated MemStat)
« Reply #9 on: July 30, 2019, 03:06:34 AM »
I looked at the x64 version and seen that it had the issue you described. I updated the traymenu control that had a couple missing lines from porting over from the x86 version, and it appears to have fixed the disappearing icon when you mouse over it. I updated the first post with the updated x64 version of TrayInfo.
fearless

CM690II Case, HX1000 PSU, Asus Z97, Intel i7-4790K, Seidon 120v Cooler, 16GB DDR3, MSI GTX 980TI

My Github  Twitter

LiaoMi

  • Member
  • ****
  • Posts: 557
Re: TrayInfo x86 and x64 (Updated MemStat)
« Reply #10 on: August 03, 2019, 05:15:29 AM »
I looked at the x64 version and seen that it had the issue you described. I updated the traymenu control that had a couple missing lines from porting over from the x86 version, and it appears to have fixed the disappearing icon when you mouse over it. I updated the first post with the updated x64 version of TrayInfo.

Hi fearless,

thank you for correcting errors, all these days it worked without hanging, but today it happened again  :undecided: We need some kind of debug logger that will test changes in the tray, if the current value is not equal to the value in the tray, then activate the full recording of events in the program.

fearless

  • Member
  • ***
  • Posts: 452
    • LetTheLightIn
Re: TrayInfo x86 and x64 (Updated MemStat)
« Reply #11 on: August 03, 2019, 08:05:23 AM »
Yes, I noticed on the x86 version - which i have kept running for a few days - that it had stopped updating the icons. I will try and get round to looking at implementing a logger - or perhaps pre-creating the icons, instead of on the fly, like icons for 0-100 - and for remainder icons for 0.1-9.9 - which might be an option to test to see where the issue lies - the shell part or the icon creation part.
fearless

CM690II Case, HX1000 PSU, Asus Z97, Intel i7-4790K, Seidon 120v Cooler, 16GB DDR3, MSI GTX 980TI

My Github  Twitter