Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Division by zero - C000090 on WinXP after Createobject
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00884102
Message ID:
00884108
Views:
9
This message has been marked as the solution to the initial question of the thread.
Hi Marvin,

Looks like the COM Component doesn't reset floating point processor to the way it was before the call. Try to reset it after the call.
DECLARE _fpreset IN msvcrt20.dll
...
loObject = createobject("Visx.Configuration")
= _fpreset()
>Hi!
>
>I really have problems with this one, because it only happens on WinXP machines... so far.
>
>Ok. This is the Code for an external COM Component:
>
>?0/0 &&This is Ok for Foxpro and gives me a "*****"
>loObject = createobject("Visx.Configuration")
>?0/0 &&Here the error happens and Visual FoxPro crashes with "C000090".
>
>I read something about errorhandling with WinNT,Win2000,WinXP Machines on this error but it really didnt help. Division by zero is allowed before I entered the createobject Line. But after that it isn't.
>The badest thing about this one is, that every division by zero ends in an C000090 error even if we are in a grid where one column has a calculated controlsource.
>
>Questions:
>1. Is it possible to set the error handling back to normal after creating this bad object?
>2. If not possible... how can I create a DLL for this and call it from the same programm without getting stuck on this behaviour.
>
>Thanks in advance
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform