By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,463 Members | 2,858 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,463 IT Pros & Developers. It's quick & easy.

Overflow or underflow in arithmetic operation

P: n/a
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
Nov 17 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
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/...13a27a1df6ae12

--
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

"glenn" <gh******@softeksoftware.com> wrote in message
news:uy**************@TK2MSFTNGP12.phx.gbl...
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

Nov 17 '05 #2

P: n/a
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

"Wayne" <Me******@community.nospam> wrote in message
news:OO*************@TK2MSFTNGP15.phx.gbl...
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/...13a27a1df6ae12
--
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

"glenn" <gh******@softeksoftware.com> wrote in message
news:uy**************@TK2MSFTNGP12.phx.gbl...
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


Nov 17 '05 #3

P: n/a
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
"glenn" <gh******@softeksoftware.com> wrote in message
news:eN**************@TK2MSFTNGP12.phx.gbl...
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

"Wayne" <Me******@community.nospam> wrote in message
news:OO*************@TK2MSFTNGP15.phx.gbl...
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/...13a27a1df6ae12

--
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

"glenn" <gh******@softeksoftware.com> wrote in message
news:uy**************@TK2MSFTNGP12.phx.gbl...
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



Nov 17 '05 #4

P: n/a
thanks,

glenn
"Wayne" <Me******@community.nospam> wrote in message
news:O0**************@TK2MSFTNGP10.phx.gbl...
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
"glenn" <gh******@softeksoftware.com> wrote in message
news:eN**************@TK2MSFTNGP12.phx.gbl...
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

"Wayne" <Me******@community.nospam> wrote in message
news:OO*************@TK2MSFTNGP15.phx.gbl...
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/...13a27a1df6ae12

--
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

"glenn" <gh******@softeksoftware.com> wrote in message
news:uy**************@TK2MSFTNGP12.phx.gbl...
> 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
>
>



Nov 17 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.