• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

RealTemp.exe doesn't read INI file

VinceF

New Member
Joined
Jan 26, 2015
Messages
6 (0.00/day)
There is a situation in which RealTemp.exe doesn't read its INI file. For a little background (not necessary) see this thread:

https://jpsoft.com/forums/threads/difference-in-exection-with-and-without-start.6497/

In a nutshell, when TCC (command interpreter from jpsoft) uses its START command (much like CMD's START) to start RealTemp.exe, RealTemp.exe does not read its INI file and apparently tries (66 times) to read INI data from its own EXE.

In my most recent test ...

I started RealTemp.exe and suspended it immediately, like this:
Code:
c:\users\vefatica\desktop\realtemp> start RealTemp.exe & priority /s %_startpid
Suspending thread 278

Then I attached to RealTemp.exe with WinDbg and created a breakpoint at GetPrivateProfileStringW. I also started ProcessMonitor (SysInternals) and asked it to monitor file system activity by RealTemp.exe.

When I resumed RealTemp.exe, it broke at GetPrivateProfileStringW (as expected) and these events (far below) were logged by ProcessMonitor. 65 more such events would follow, on each call to GetPrivateProfileString. As can be seen, it's querying the wrong file (the EXE). That's unlike starting RealTemp.exe by other means, when those 66 queries are aimed at the INI file.

TCC's START command ultimately uses CreateProcess with correct looking first two arguments. As a programmer, I can't imagine how anything in a call to CreateProcess could cause another app to misbehave that way. I also can't imagine how an app might attempt to use GetPrivateProfileStringW on its own EXE file. And I'm very curious about what's going on.

- Vince
Code:
21:33:22.9039054 REALTEMP.EXE 1536 IRP_MJ_CREATE C:\Users\vefatica\Desktop\RealTemp\RealTemp.exe SUCCESS Desired Access: Generic Read, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
21:33:22.9039428 REALTEMP.EXE 1536 FASTIO_LOCK C:\Users\vefatica\Desktop\RealTemp\RealTemp.exe FAST IO DISALLOWED Exclusive: False, Offset: 0, Length: 4,294,967,295, Fail Immediately: False
21:33:22.9039505 REALTEMP.EXE 1536 IRP_MJ_LOCK_CONTROL C:\Users\vefatica\Desktop\RealTemp\RealTemp.exe SUCCESS Lock Type: Lock, Exclusive: False, Offset: 0, Length: 4,294,967,295, Fail Immediately: False
21:33:22.9039635 REALTEMP.EXE 1536 FASTIO_QUERY_INFORMATION C:\Users\vefatica\Desktop\RealTemp\RealTemp.exe SUCCESS Type: QueryStandardInformationFile, AllocationSize: 217,088, EndOfFile: 216,064, NumberOfLinks: 1, DeletePending: False, Directory: False
21:33:22.9042307 REALTEMP.EXE 1536 IRP_MJ_READ C:\Users\vefatica\Desktop\RealTemp\RealTemp.exe SUCCESS Offset: 0, Length: 216,064, Priority: Low
21:33:22.9050060 REALTEMP.EXE 1536 FASTIO_UNLOCK_SINGLE C:\Users\vefatica\Desktop\RealTemp\RealTemp.exe FAST IO DISALLOWED Offset: 0, Length: 4,294,967,295
21:33:22.9050133 REALTEMP.EXE 1536 IRP_MJ_LOCK_CONTROL C:\Users\vefatica\Desktop\RealTemp\RealTemp.exe SUCCESS Lock Type: UnlockSingle, Offset: 0, Length: 4,294,967,295
21:33:22.9050326 REALTEMP.EXE 1536 IRP_MJ_CLEANUP C:\Users\vefatica\Desktop\RealTemp\RealTemp.exe SUCCESS
 
Last edited:
Joined
Apr 3, 2012
Messages
4,355 (0.99/day)
Location
St. Paul, MN
System Name Bay2- Lowerbay/ HP 3770/T3500-2+T3500-3+T3500-4/ Opti-Con/Orange/White/Grey
Processor i3 2120's/ i7 3770/ x5670's/ i5 2400/Ryzen 2700/Ryzen 2700/R7 3700x
Motherboard HP UltraSlim's/ HP mid size/ Dell T3500 workstation's/ Dell 390/B450 AorusM/B450 AorusM/B550 AorusM
Cooling All stock coolers/Grey has an H-60
Memory 2GB/ 4GB/ 12 GB 3 chan/ 4GB sammy/T-Force 16GB 3200/XPG 16GB 3000/Ballistic 3600 16GB
Video Card(s) HD2000's/ HD 2000/ 1 MSI GT710,2x MSI R7 240's/ HD4000/ Red Dragon 580/Sapphire 580/Sapphire 580
Storage ?HDD's/ 500 GB-er's/ 500 GB/2.5 Samsung 500GB HDD+WD Black 1TB/ WD Black 500GB M.2/Corsair MP600 M.2
Display(s) 1920x1080/ ViewSonic VX24568 between the rest/1080p TV-Grey
Case HP 8200 UltraSlim's/ HP 8200 mid tower/Dell T3500's/ Dell 390/SilverStone Kublai KL06/NZXT H510 W x2
Audio Device(s) Sonic Master/ onboard's/ Beeper's!
Power Supply 19.5 volt bricks/ Dell PSU/ 525W sumptin/ same/Seasonic 750 80+Gold/EVGA 500 80+/Antec 650 80+Gold
Mouse cheap GigaWire930, CMStorm Havoc + Logitech M510 wireless/iGear usb x2/MX 900 wireless kit 4 Grey
Keyboard Dynex, 2 no name, SYX and a Logitech. All full sized and USB. MX900 kit for Grey
Software Mint 18 Sylvia/ Opti-Con Mint KDE/ T3500's on Kubuntu/HP 3770 is Win 10/Win 10 Pro/Win 10 Pro/Win10
Benchmark Scores World Community Grid is my benchmark!!
Sorry but, I have no, zero, nada, understanding of how, or why, you are having problems with RealTemp.

Are you trying to make it not work? If so, you found it! :laugh:
 

VinceF

New Member
Joined
Jan 26, 2015
Messages
6 (0.00/day)
Sorry but, I have no, zero, nada, understanding of how, or why, you are having problems with RealTemp.

Are you trying to make it not work? If so, you found it! :laugh:
The problem was discovered by a regular user of RealTemp and reported in a forum unrelated to RealTemp. I reproduced it, investigated, and reported my observations here, hoping that they might do some good (or at least that a pretty interesting mystery would be solved). That's it.
 
Joined
Apr 3, 2012
Messages
4,355 (0.99/day)
Location
St. Paul, MN
System Name Bay2- Lowerbay/ HP 3770/T3500-2+T3500-3+T3500-4/ Opti-Con/Orange/White/Grey
Processor i3 2120's/ i7 3770/ x5670's/ i5 2400/Ryzen 2700/Ryzen 2700/R7 3700x
Motherboard HP UltraSlim's/ HP mid size/ Dell T3500 workstation's/ Dell 390/B450 AorusM/B450 AorusM/B550 AorusM
Cooling All stock coolers/Grey has an H-60
Memory 2GB/ 4GB/ 12 GB 3 chan/ 4GB sammy/T-Force 16GB 3200/XPG 16GB 3000/Ballistic 3600 16GB
Video Card(s) HD2000's/ HD 2000/ 1 MSI GT710,2x MSI R7 240's/ HD4000/ Red Dragon 580/Sapphire 580/Sapphire 580
Storage ?HDD's/ 500 GB-er's/ 500 GB/2.5 Samsung 500GB HDD+WD Black 1TB/ WD Black 500GB M.2/Corsair MP600 M.2
Display(s) 1920x1080/ ViewSonic VX24568 between the rest/1080p TV-Grey
Case HP 8200 UltraSlim's/ HP 8200 mid tower/Dell T3500's/ Dell 390/SilverStone Kublai KL06/NZXT H510 W x2
Audio Device(s) Sonic Master/ onboard's/ Beeper's!
Power Supply 19.5 volt bricks/ Dell PSU/ 525W sumptin/ same/Seasonic 750 80+Gold/EVGA 500 80+/Antec 650 80+Gold
Mouse cheap GigaWire930, CMStorm Havoc + Logitech M510 wireless/iGear usb x2/MX 900 wireless kit 4 Grey
Keyboard Dynex, 2 no name, SYX and a Logitech. All full sized and USB. MX900 kit for Grey
Software Mint 18 Sylvia/ Opti-Con Mint KDE/ T3500's on Kubuntu/HP 3770 is Win 10/Win 10 Pro/Win 10 Pro/Win10
Benchmark Scores World Community Grid is my benchmark!!

unclewebb

ThrottleStop & RealTemp Author
Joined
Jun 1, 2008
Messages
7,271 (1.26/day)
Thanks for posting that VinceF.

I had a look at the RealTemp code and found out that it has a feature that is not compatible with TCC. RealTemp allows a user to run 2 different versions of RealTemp from the same directory and allows each version to use a different INI file. For example, you could have RealTempA.exe and RealTempB.exe. The first program would use the RealTempA.INI config file and the second program would use the RealTempB.INI config file. I have no idea why I originally added this feature but I am sure it was a good idea at the time. I think it was so a person could access the temperature sensors on a dual CPU system. The code that I created for this feature is not working correctly with the Take Command program that you are using.

If this is important to you or to anyone in that other forum and you would like me to try to come up with a solution, send me a private message or ask them to send an email to the address in the About box of RealTemp. I will see what I can do.
 

VinceF

New Member
Joined
Jan 26, 2015
Messages
6 (0.00/day)
Thanks for your reply, unclewebb.

I doubt it's important to the original poster in the JPSoft forum. I'll try to find out.

I'm still very curious, and I suppose TCC's author is also, about what triggers the alternate behavior. Would you please explain?

- Vince
 

VinceF

New Member
Joined
Jan 26, 2015
Messages
6 (0.00/day)
P.S. I have difficulty using this forum using FireFox (latest version). The edit box for new threads and replies is always missing. It's OK in other forums that use XenForo. Is that something I can correct?
 
Joined
Apr 3, 2012
Messages
4,355 (0.99/day)
Location
St. Paul, MN
System Name Bay2- Lowerbay/ HP 3770/T3500-2+T3500-3+T3500-4/ Opti-Con/Orange/White/Grey
Processor i3 2120's/ i7 3770/ x5670's/ i5 2400/Ryzen 2700/Ryzen 2700/R7 3700x
Motherboard HP UltraSlim's/ HP mid size/ Dell T3500 workstation's/ Dell 390/B450 AorusM/B450 AorusM/B550 AorusM
Cooling All stock coolers/Grey has an H-60
Memory 2GB/ 4GB/ 12 GB 3 chan/ 4GB sammy/T-Force 16GB 3200/XPG 16GB 3000/Ballistic 3600 16GB
Video Card(s) HD2000's/ HD 2000/ 1 MSI GT710,2x MSI R7 240's/ HD4000/ Red Dragon 580/Sapphire 580/Sapphire 580
Storage ?HDD's/ 500 GB-er's/ 500 GB/2.5 Samsung 500GB HDD+WD Black 1TB/ WD Black 500GB M.2/Corsair MP600 M.2
Display(s) 1920x1080/ ViewSonic VX24568 between the rest/1080p TV-Grey
Case HP 8200 UltraSlim's/ HP 8200 mid tower/Dell T3500's/ Dell 390/SilverStone Kublai KL06/NZXT H510 W x2
Audio Device(s) Sonic Master/ onboard's/ Beeper's!
Power Supply 19.5 volt bricks/ Dell PSU/ 525W sumptin/ same/Seasonic 750 80+Gold/EVGA 500 80+/Antec 650 80+Gold
Mouse cheap GigaWire930, CMStorm Havoc + Logitech M510 wireless/iGear usb x2/MX 900 wireless kit 4 Grey
Keyboard Dynex, 2 no name, SYX and a Logitech. All full sized and USB. MX900 kit for Grey
Software Mint 18 Sylvia/ Opti-Con Mint KDE/ T3500's on Kubuntu/HP 3770 is Win 10/Win 10 Pro/Win 10 Pro/Win10
Benchmark Scores World Community Grid is my benchmark!!
I don't know what setting you have that would cause the edit box to not show. However, on occasion that has happened to me, on Chrome and FF. I think it is two possible issues.

One, when I am using a poor internet connection, this can happen. I refresh the page and it goes away.

Two, sometimes TPU traffic plays with their servers and can omit the edit box or a button or two. Refresh and it solves it.

If refresh doesn't help you...http://www.techpowerup.com/forums/threads/feedback-bug-reports-for-new-forums.194776/

Good luck!
 
Top