Hi Darriusz
Given that I have seen other posts about you having to switch cores off on your Phenom X6 to get things working at times I suspect there may be a problem somewhere with hardware/acpi interaction(s) on that system - at least it is not just my app :-)
Glad to hear PMsmartcl does not take out the system but Not sure what I can do to help resolve the issues with the Phenom X6...
As regards where the "softlock" occurs with PMsmartctl:
When the path to smartctl.exe has been entered PMsmartctl calls "smartctl --scan > SCAN.TXT" to create a file containing the list of available disks. SCAN.TXT is then read and disk radio buttons are Enabled for those disks found.
Do the PATA/SATA Radio Buttons corresponding to the installed disks get Enabled? Looking at your previous post it looks like they do... Which could indicate some simple code fails, possibly:-
// Close text file
CloseFile(F);
I do not know a "workaround" if using CloseFile on the SCAN.TXT file is where the "softlock" occurs...
Does the following text get displayed in the top left area of the app?
1] Locate smartctl.exe
2] Select Disk
3] Select Information
4] Click Show
If "No" then my guess is something goes wrong with CloseFile(F) or thereabouts.
If "Yes" - quite simply, no ideas... The app should be sitting waiting for a user to select disk and information required before clicking the "Show" button.
PMsmartctl uses the following command to get the list of drives:-
smartctl --scan > SCAN.TXT
Copy'n'Paste the above in a command window opened in your smartctl directory.
The above does not tell you which disk is on what controller though, for that you need to ask the driver what it found at boot ie:-
Copy OS2AHCI$ K:\TEMP\SATA.TRC
Below is the output of both OS2AHC$ (using older 1.32 release as it shows unused ports as well) and smartctl --scan which shows that the disk reported by OS2AHCI$ on Adapter 1 Port 1 is seen as ahci4 by smartctl.exe
OS2AHCI$ output:-
BldLevel: @#Arca Noae LLC:1.32#@##1## 16 Nov 2014 08:16:06 DAZAR1 ::::::@@AHCI Driver (c) 2014 Arca Noae LLC
CmdLine: OS2AHCI.ADD
Adapter 0: PCI=0:17:0 ID=1002:4391 AMD SB700/800 irq=19 addr=0xfeb0b000 version=10200
Port 0:
Drive 0: 14593 cylinders, 255 heads, 63 sectors per track (114470MB) (LVM)
Port 1:
Drive 0: 60321 cylinders, 255 heads, 127 sectors per track (953855MB) (LVM)
Port 2:
Drive 0: atapi removable Drive present but no information available. Not queried by OS.
Port 3:
Drive 0: atapi removable Drive present but no information available. Not queried by OS.
Port 4:
No drive present
Port 5:
No drive present
Adapter 1: PCI=3:0:0 ID=1b4b:9172 Generic Generic irq=47 addr=0xfe810000 version=10000
Port 0:
No drive present
Port 1:
Drive 0: 30042 cylinders, 255 heads, 255 sectors per track (953848MB) (LVM)
smartctl --scan output:-
ahci0 -d ata # ahci0, ATA device
ahci1 -d ata # ahci1, ATA device
ahci2 -d ata # ahci2, ATA device
ahci3 -d ata # ahci3, ATA device
ahci4 -d ata # ahci4, ATA device
As regards sharing my code: No Problem - was thinking about writing an article on creating a relatively simple WDSibyl application using this app and asking Martin if he wants to "publish" it on os2world so was planning to "open source" PMsmartctl. I suspect your main interest would be the "smartctl --scan" and "copy OS2AHCI$" bits above though.
Incidentially, have you checked whether BS_Info "exposes all the pertinent details a storage device has" -
https://www.wdsibyl.org/index.php?module=Downloads&func=sublevel&cid=24&lang=enRegards
Pete