www.skylinesoft.com Homepage
Forum Home Forum Home > SkylineGlobe Enterprise Products > TerraExplorer for Developers
  New Posts New Posts RSS Feed - 'EZeroDivide' while loading mpt file
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

'EZeroDivide' while loading mpt file

 Post Reply Post Reply
Author
Message
Donald View Drop Down
Visitor
Visitor


Joined: May 30 2008
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote Donald Quote  Post ReplyReply Direct Link To This Post Topic: 'EZeroDivide' while loading mpt file
    Posted: May 30 2008 at 6:04am
when i use
ITerraExplorer51->Load(L"xxx.mpt");
to load some mpt file in Delphi/C++ Builder
would cause a 'EZeroDivide' error in 'mptdll.dll',
but it can be open in TerraExplorer pro perfectly.
of course,not all the mpt file would cause this problem,but some specific.
And these files can be loaded in Visual Studio(C#).
somebody please tell me how to solve this problem,
thanks!!
 


Edited by Donald - May 30 2008 at 8:46am
Back to Top
Eylon View Drop Down
Skyline Admin Group
Skyline Admin Group
Avatar

Joined: May 05 2003
Location: Israel
Status: Offline
Points: 263
Post Options Post Options   Thanks (0) Thanks(0)   Quote Eylon Quote  Post ReplyReply Direct Link To This Post Posted: June 02 2008 at 11:19am
This comes from a dirrerent floating point use in C++ builder.
To resolve do the following:

In "Unit1.cpp" //or your unit

Add include for floating point issue:

            #include <float.h>

in the constructor:

Fix for floating point:

             _control87(MCW_EM, MCW_EM);

Eylon
Back to Top
Donald View Drop Down
Visitor
Visitor


Joined: May 30 2008
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote Donald Quote  Post ReplyReply Direct Link To This Post Posted: June 03 2008 at 2:01am

The problem is solved.

thank you very much!!
 
ClapClapClapClapClapClapClap
Back to Top
Donald View Drop Down
Visitor
Visitor


Joined: May 30 2008
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote Donald Quote  Post ReplyReply Direct Link To This Post Posted: June 03 2008 at 8:57am

but I think the floating-point processing unit in TE must has some bugs,

hope that the programmers of skyline to improve it!!
 
(maybe turning to borland's compiler is a better idea to prevent this problems)


Edited by Donald - June 03 2008 at 9:01am
Back to Top
Eylon View Drop Down
Skyline Admin Group
Skyline Admin Group
Avatar

Joined: May 05 2003
Location: Israel
Status: Offline
Points: 263
Post Options Post Options   Thanks (0) Thanks(0)   Quote Eylon Quote  Post ReplyReply Direct Link To This Post Posted: June 05 2008 at 1:39pm

The problem is not in either component. It is simply a different approach that can be bridged as shown.

Glad it worked :-D
Eylon
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.188 seconds.