![]() |
'EZeroDivide' while loading mpt file |
Post Reply
|
| Author | |
Donald
Visitor
Joined: May 30 2008 Status: Offline Points: 17 |
Post Options
Thanks(0)
Quote Reply
Topic: 'EZeroDivide' while loading mpt filePosted: 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 |
|
![]() |
|
Eylon
Skyline Admin Group
Joined: May 05 2003 Location: Israel Status: Offline Points: 263 |
Post Options
Thanks(0)
Quote Reply
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
|
|
![]() |
|
Donald
Visitor
Joined: May 30 2008 Status: Offline Points: 17 |
Post Options
Thanks(0)
Quote Reply
Posted: June 03 2008 at 2:01am |
|
The problem is solved. thank you very much!!
|
|
![]() |
|
Donald
Visitor
Joined: May 30 2008 Status: Offline Points: 17 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Eylon
Skyline Admin Group
Joined: May 05 2003 Location: Israel Status: Offline Points: 263 |
Post Options
Thanks(0)
Quote Reply
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
|
|
![]() |
|
Post Reply
|
|
|
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |