I am getting the following error First-chance exception in UCSSocketServer.exe (KERNEL32.DLL): 0xC000008F: Float Inexact Result. My VC++ program invokes a method of a VB ocx which in turn calls the VB dll. The error occurs during the invocation of the dll method. I have a VB client which works without any problem. But when I try to call it through my VC++ code it throws this exception. Can anybody give a solution to this. Thanks in advance.
John
Originally posted by johnsam2000
??
any solutions?
I don't think you'll get any quick solutions without posting some relevant code. With the information you've given so far, we can only guess what might be wrong.
I may be wrong, but I think that it's the VB runtime dll that generates these errors if you run it inside of VCs debugger. In any case, anytime I debug a C++ COM object with a program written in VB, I get loads of these. Maybe it's when in VB you use implicit conversions, variant datatypes or generic functions taking variants as input.
In any case, if it comes from the VB ocx, I wouldn't worry about it.
[edit:
Thinking about the whole thing, it's probably normal behaviour by VB. The thing is that a certain function generates this exception and usually the VB runtime (or the compiled code) would catch it directly and handle it accordingly. But since you attached a debugger, that sees the exception before VB can handle it. Hence it's name "First chance exception". If the VB runtime (or the compiled VB code) would not handle the exception, the debugger would catch a "Second chance exception" while the VB program would crash.
So, in short, don't worry about that.]
Last edited by Yves M; February 18th, 2004 at 07:42 PM.
Get this small utility to do basic syntax highlighting in vBulletin forums (like Codeguru) easily.
Supports C++ and VB out of the box, but can be configured for other languages.
Bookmarks