Overflow or underflow in arithmetic operation

G

glenn

I have a COM Server I've written in C#. I have a client app I've written in
Delphi that is calling the C# COM Server. However, one of the functions in
the COM Server creates a form and during the creation process it receives
the Overflow or Underflow in arithmetic operation error. I have traced it
down to the section of the for where its registering the components...

this.Controls.Add(this.cmd_exit);

it doesn't matter which control it is as they all raise that error.

If I click the button to make the call a second time right after I receive
the error, it works perfectly. So the first time I call it I get the above
error, the second time I call it it works.

Can anyone tell me what I might be doing wrong. Here is the syntax that is
creating the instance of the form...

frmFingerSet frmset = new frmFingerSet();

thanks,

glenn
 
W

Wayne

We had the same issue when we set up a .net com object getting called from
Delphi, the following link should provide you with the information you need
to solve your issue:

http://groups-beta.google.com/group..._doneTitle=Back+to+Search&&d#ce13a27a1df6ae12

--
Thanks
Wayne Sepega
Jacksonville, Fl

Enterprise Library Configuration Console Module Generator
http://workspaces.gotdotnet.com/elccmg

"When a man sits with a pretty girl for an hour, it seems like a minute. But
let him sit on a hot stove for a minute and it's longer than any hour.
That's relativity." - Albert Einstein
 
G

glenn

Thanks for the info, but is this real? I have to add all that code on every
single function call I make that might open a form at some point? This is
insane. Is there a way to stop C# from modifying the FPU?

Thanks,

glenn
 
W

Wayne

So far our use of this was one call, so I am not sure. You may be able to
just turn off the FPU exceptions on start up and leave them off. May or may
not be desirable.

Wayne
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top