| View previous topic :: View next topic |
| Author |
Message |
Tommy
Joined: 07 Jun 2009 Posts: 40 Location: France
|
Posted: Mon Jul 20, 2009 5:19 pm Post subject: HDD Explorer Exception |
|
|
When I use HDD Explorer, I obtain this:
The exception occures when I select the hard disk in the list.
Here's the hard disk partition info (obtained in FDisk):
Size: 1 GB
Type: 0x0C (FAT32 LBA)
LBA : 0x0000003F -> 0x001FFDC1 |
|
| Back to top |
|
 |
bogdanontanu Site Admin
Joined: 01 Apr 2006 Posts: 783 Location: Sol, Earth, Europe, Romania, Bucuresti
|
Posted: Mon Jul 20, 2009 8:22 pm Post subject: |
|
|
Hi Tommy,
Thank for reprting.
I will check it out...
How was the partition created and in what kind of virtual machine or PC are you testing when you get this error?
Can you browse other partitions or HDD's or a CD-ROM? _________________ Ambition is a lame excuse for the ones not brave enough to be lazy. |
|
| Back to top |
|
 |
bogdanontanu Site Admin
Joined: 01 Apr 2006 Posts: 783 Location: Sol, Earth, Europe, Romania, Bucuresti
|
Posted: Mon Jul 20, 2009 8:28 pm Post subject: |
|
|
Ooops...
It is a "Divide by Zero" exception generated by the following code:
| Code: |
1 0 0 00124D28 sub eax,[os_hdd_time_low]
1 0 0 00124D2E sbb edx,[os_hdd_time_high]
1 0 0 00124D34 mov ebx,[os_cpu_frequency_mhz]
1 0 0 00124D3A div ebx
|
I guess that EBX is zero because CPU frequency is not calculated at the time of that benchmark code Mea culpa.
I also have to improve the exception info in the error message box.
However the funny part is that I do not get this error on my side when I browse a FAT32 partition.
And even more the result of the HDD speed benchmark is reported correctly at each HDD sector read in the Debug View application.
Hence the divide is not failing in may case ... _________________ Ambition is a lame excuse for the ones not brave enough to be lazy.
Last edited by bogdanontanu on Mon Jul 20, 2009 10:38 pm; edited 1 time in total |
|
| Back to top |
|
 |
bogdanontanu Site Admin
Joined: 01 Apr 2006 Posts: 783 Location: Sol, Earth, Europe, Romania, Bucuresti
|
Posted: Mon Jul 20, 2009 9:10 pm Post subject: |
|
|
There is another possibility: your emulator or CPU is so slow that the CPU speed is under 1Mhz
What is the CPU speed shown in System Info application?
Anyway in that case (CPU speed < 1Mhz) the divide will fail (and it should not).
I have released a new version with this issue fixed. _________________ Ambition is a lame excuse for the ones not brave enough to be lazy. |
|
| Back to top |
|
 |
Tommy
Joined: 07 Jun 2009 Posts: 40 Location: France
|
Posted: Mon Jul 20, 2009 10:18 pm Post subject: |
|
|
| bogdanontanu wrote: | | What is the CPU speed shown in System Info application? |
1199 MHz. I use Virtual PC 2007. |
|
| Back to top |
|
 |
Tommy
Joined: 07 Jun 2009 Posts: 40 Location: France
|
Posted: Mon Jul 20, 2009 10:20 pm Post subject: |
|
|
| bogdanontanu wrote: | | I have released a new version with this issue fixed. |
Bug fixed. It works now. |
|
| Back to top |
|
 |
|