Total Commander Forum Index Total Commander
Forum - Public Discussion and Support
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[BUG] Invalid floating point operation

 
Post new topic   Reply to topic    Total Commander Forum Index -> TC Fixed bugs Printable version
View previous topic :: View next topic  
Author Message
roentgen
Power Member
Power Member


Joined: 03 Dec 2005
Posts: 759

PostPosted: Tue Jan 09, 2007 11:21 am    Post subject: [BUG] Invalid floating point operation Reply with quote

When entering a .lst file created by DiskDirExtended wcx plugin I get this error:
Code:
---------------------------
Total Commander
---------------------------
Invalid floating point operation.
Please report this error to the Author,
with a description of what you were doing when this error occured!
Continue execution?
---------------------------
Yes   No   
---------------------------

Loading TC through a debugger I get this also:
Code:
'TOTALCMD.EXE': Loaded 'C:\Program Files\Totalcmd7\Plugins\wcx\DiskDirExtended\DiskDirExtended.wcx', Binary was not built with debug information.
First-chance exception at 0x005e795e in TOTALCMD.EXE: 0xC0000090: Floating-point invalid operation.

_________________
TC for Linux please!
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
sqa_wizard
Power Member
Power Member


Joined: 06 Feb 2003
Posts: 2597
Location: Germany

PostPosted: Tue Jan 09, 2007 3:13 pm    Post subject: Reply with quote

What version of DiskDirExtended are you using ?

What is the content of the lst file ? (shown by lister or notepad)
_________________
#5767 Personal license
Back to top
View user's profile Send private message
TrePe
Junior Member
Junior Member


Joined: 10 Feb 2004
Posts: 40
Location: Slovakia

PostPosted: Wed Jan 10, 2007 3:06 am    Post subject: Re: [BUG] Invalid floating point operation Reply with quote

Oh, give me please that lst file. I do not even remember using floating point operations in my program...
Back to top
View user's profile Send private message Send e-mail
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 24602
Location: Switzerland

PostPosted: Wed Jan 10, 2007 3:50 am    Post subject: Reply with quote

Yes, please post the part of the list file here which causes this error. I guess that DiskDirExetended returns a HUGE number for file size or a bad date value, which then causes TC to show this error.
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
TrePe
Junior Member
Junior Member


Joined: 10 Feb 2004
Posts: 40
Location: Slovakia

PostPosted: Wed Jan 10, 2007 3:59 am    Post subject: Reply with quote

He already sent it to me. I will look into this, thank you.
Back to top
View user's profile Send private message Send e-mail
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 24602
Location: Switzerland

PostPosted: Wed Jan 10, 2007 4:07 am    Post subject: Reply with quote

Please keep me updated! If any number returned by DiskDirExetended causes a floating point exception in TC itself, then I need to know it so I can write a workaround!
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
TrePe
Junior Member
Junior Member


Joined: 10 Feb 2004
Posts: 40
Location: Slovakia

PostPosted: Wed Jan 10, 2007 1:31 pm    Post subject: Reply with quote

We are talking about TC 7.0pb2 and DiskDirExtended 1.55.

Here is lst file how to reproduce (it was created by DiskDirExtended 1.52, that is why there are so huge file sizes - they were originally inside iso file and I had a bug in previous version of DDE with iso files):
Code:
f:\
a.txt   5077810778883651654   2005.3.2   2:34.14
b.txt   5780088646753335120   2005.10.30   18:3.12


Both lines are important. When there is only one file in there, the size shown by TC is question mark (it displays '?' instead of file size).

The exception is raised after second return from my ReadHeaderEx function.
First tHeaderDataEx structure:
Code:
FileName=a.txt
UnpSize=161862 (0x27846)
UnpSizeHigh=1182269952 (0x46780200)
FileTime=845288519 (0x32621447)

Second tHeaderDataEx structure:
Code:
FileName=b.txt
UnpSize=14160 (0x3750)
UnpSizeHigh=1345781760 (0x50370000)
FileTime=861835366 (0x335E9066)

Everything else is 0.

Hope this helps.
Back to top
View user's profile Send private message Send e-mail
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 24602
Location: Switzerland

PostPosted: Thu Jan 11, 2007 1:41 pm    Post subject: Reply with quote

Ah, I see - I will try to check what happens with a debugger.
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 24602
Location: Switzerland

PostPosted: Thu Feb 22, 2007 8:27 am    Post subject: Reply with quote

This should be fixed now. TC7 beta 4 should no longer show an error when receiving an extremely large number for the size.
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
roentgen
Power Member
Power Member


Joined: 03 Dec 2005
Posts: 759

PostPosted: Mon Mar 12, 2007 7:22 am    Post subject: Reply with quote

Yes. This is fixed. I see funny sizes returned by the plugin, but TC does not crash anymore.
Thanks for paying attention.
_________________
TC for Linux please!
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 24602
Location: Switzerland

PostPosted: Wed Mar 14, 2007 3:38 am    Post subject: Reply with quote

Thanks!
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> TC Fixed bugs All times are GMT - 6 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


Impressum: This site is maintained by Ghisler Software GmbH

Using phpBB © 2001-2005 phpBB Group