Solar Forums Forum Index Solar Forums
forums for: Solar OS, Solar Asm and Hostile Encounter RTS Game
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

HDD Explorer Exception

 
Post new topic   Reply to topic    Solar Forums Forum Index -> SOLAR OS bugs
View previous topic :: View next topic  
Author Message
Tommy



Joined: 07 Jun 2009
Posts: 40
Location: France

PostPosted: Mon Jul 20, 2009 5:19 pm    Post subject: HDD Explorer Exception Reply with quote

Sad

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
View user's profile Send private message
bogdanontanu
Site Admin


Joined: 01 Apr 2006
Posts: 783
Location: Sol, Earth, Europe, Romania, Bucuresti

PostPosted: Mon Jul 20, 2009 8:22 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
bogdanontanu
Site Admin


Joined: 01 Apr 2006
Posts: 783
Location: Sol, Earth, Europe, Romania, Bucuresti

PostPosted: Mon Jul 20, 2009 8:28 pm    Post subject: Reply with quote

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 Very Happy 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
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
bogdanontanu
Site Admin


Joined: 01 Apr 2006
Posts: 783
Location: Sol, Earth, Europe, Romania, Bucuresti

PostPosted: Mon Jul 20, 2009 9:10 pm    Post subject: Reply with quote

There is another possibility: your emulator or CPU is so slow that the CPU speed is under 1Mhz Very Happy

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
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Tommy



Joined: 07 Jun 2009
Posts: 40
Location: France

PostPosted: Mon Jul 20, 2009 10:18 pm    Post subject: Reply with quote

bogdanontanu wrote:
What is the CPU speed shown in System Info application?


1199 MHz. I use Virtual PC 2007.
Back to top
View user's profile Send private message
Tommy



Joined: 07 Jun 2009
Posts: 40
Location: France

PostPosted: Mon Jul 20, 2009 10:20 pm    Post subject: Reply with quote

bogdanontanu wrote:
I have released a new version with this issue fixed.


Bug fixed. It works now.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Solar Forums Forum Index -> SOLAR OS bugs All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group