I have a VB.NET framework 1.1 application that I am installing on my user's
workstation. It works fine on EVERY machine except for one - on this one
machine it generates a 'Overflow or underflow in the arithmetic operation'
when I attempt to instantiate my first form, as so:
Dim frm As New frmMyForm()
Based on some things I saw here, I thought it might be that this workstation
didn't have a MS Sans Seriff font on it (since that is the forms default
font); however, turns out it did have the font installed. I even went so far
as to delete the sans seriff font and copy the one from my machine to this
one (in case the font was corrupted)... no difference, still has the same
error.
Any ideas? What else should I look for that could be different on this
machine?
Tom 4 4145
Hi Tom,
I have a couple of questions:
1. Does this error occur on any Form or just a specific Form?
2. If the answer to 1 is a specific Form than what code is in the constructor (New()) of this form?
Craig VB.Net Team
--------------------------------------------------------------------
This reply is provided AS IS, without warranty (express or implied).
-------------------- From: "Tom" <to*@nospam.com > Subject: Overflow or underflow in the arithmetic operation when instantiating form Date: Mon, 26 Jul 2004 14:11:31 -0400 Lines: 20 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Message-ID: <#C************ **@tk2msftngp13 .phx.gbl> Newsgroups: microsoft.publi c.dotnet.langua ges.vb NNTP-Posting-Host: fw.paragen.com 66.184.200.226 Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG XA01.phx.gbl!TK 2MSFTNGP08.phx. gbl!tk2msftngp1 3.phx.gbl Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.vb:219139 X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.vb
I have a VB.NET framework 1.1 application that I am installing on my user's workstation. It works fine on EVERY machine except for one - on this one machine it generates a 'Overflow or underflow in the arithmetic operation' when I attempt to instantiate my first form, as so:
Dim frm As New frmMyForm()
Based on some things I saw here, I thought it might be that this workstation didn't have a MS Sans Seriff font on it (since that is the forms default font); however, turns out it did have the font installed. I even went so far as to delete the sans seriff font and copy the one from my machine to this one (in case the font was corrupted)... no difference, still has the same error.
Any ideas? What else should I look for that could be different on this machine?
Tom
Hi Tom,
I have a couple of questions:
1. Does this error occur on any Form or just a specific Form?
2. If the answer to 1 is a specific Form than what code is in the constructor (New()) of this form?
Craig VB.Net Team
--------------------------------------------------------------------
This reply is provided AS IS, without warranty (express or implied).
-------------------- From: "Tom" <to*@nospam.com > Subject: Overflow or underflow in the arithmetic operation when instantiating form Date: Mon, 26 Jul 2004 14:11:31 -0400 Lines: 20 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Message-ID: <#C************ **@tk2msftngp13 .phx.gbl> Newsgroups: microsoft.publi c.dotnet.langua ges.vb NNTP-Posting-Host: fw.paragen.com 66.184.200.226 Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG XA01.phx.gbl!TK 2MSFTNGP08.phx. gbl!tk2msftngp1 3.phx.gbl Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.vb:219139 X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.vb
I have a VB.NET framework 1.1 application that I am installing on my user's workstation. It works fine on EVERY machine except for one - on this one machine it generates a 'Overflow or underflow in the arithmetic operation' when I attempt to instantiate my first form, as so:
Dim frm As New frmMyForm()
Based on some things I saw here, I thought it might be that this workstation didn't have a MS Sans Seriff font on it (since that is the forms default font); however, turns out it did have the font installed. I even went so far as to delete the sans seriff font and copy the one from my machine to this one (in case the font was corrupted)... no difference, still has the same error.
Any ideas? What else should I look for that could be different on this machine?
Tom
Believe it or not, we found out that the problem was with WeatherBug. The
customer that was having this error with our app took off WeatherBug and the
problem went away. Don't know what WeatherBug does that messes up .NET, but
it sure was causing that issue.
Anyway, that fixed it.
Tom
"Craig Vick [MSFT]" <cr*****@online .microsoft.com> wrote in message
news:tK******** ********@cpmsft ngxa10.phx.gbl. .. Hi Tom,
I have a couple of questions:
1. Does this error occur on any Form or just a specific Form? 2. If the answer to 1 is a specific Form than what code is in the
constructor (New()) of this form? Craig VB.Net Team -------------------------------------------------------------------- This reply is provided AS IS, without warranty (express or implied).
--------------------From: "Tom" <to*@nospam.com > Subject: Overflow or underflow in the arithmetic operation when
instantiating formDate: Mon, 26 Jul 2004 14:11:31 -0400 Lines: 20 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Message-ID: <#C************ **@tk2msftngp13 .phx.gbl> Newsgroups: microsoft.publi c.dotnet.langua ges.vb NNTP-Posting-Host: fw.paragen.com 66.184.200.226 Path:
cpmsftngxa06.ph x.gbl!TK2MSFTNG XA01.phx.gbl!TK 2MSFTNGP08.phx. gbl!tk2msftngp1 3
..phx.gblXref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.vb:219139 X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.vb
I have a VB.NET framework 1.1 application that I am installing on my
user'sworkstation. It works fine on EVERY machine except for one - on this one machine it generates a 'Overflow or underflow in the arithmetic
operation'when I attempt to instantiate my first form, as so:
Dim frm As New frmMyForm()
Based on some things I saw here, I thought it might be that this
workstationdidn't have a MS Sans Seriff font on it (since that is the forms default font); however, turns out it did have the font installed. I even went so
faras to delete the sans seriff font and copy the one from my machine to
thisone (in case the font was corrupted)... no difference, still has the same error.
Any ideas? What else should I look for that could be different on this machine?
Tom
Interesting! I'm not familiar with WeatherBug and have no idea how it could cause this.
Thanks for the update.
Craig VB.Net Team
--------------------------------------------------------------------
This reply is provided AS IS, without warranty (express or implied).
-------------------- From: "Tom" <to*@nospam.com > References: <#C************ **@tk2msftngp13 .phx.gbl> <tK************ **@cpmsftngxa10 .phx.gbl> Subject: Re: Overflow or underflow in the arithmetic operation when instantiating form Date: Tue, 3 Aug 2004 12:31:31 -0400 Lines: 72 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Message-ID: <up************ **@TK2MSFTNGP09 .phx.gbl> Newsgroups: microsoft.publi c.dotnet.langua ges.vb NNTP-Posting-Host: fw.paragen.com 66.184.200.226 Path: cpmsftngxa10.ph x.gbl!TK2MSFTFE ED01.phx.gbl!TK 2MSFTNGP08.phx. gbl!TK2MSFTNGP0 9.phx.gbl Xref: cpmsftngxa10.ph x.gbl microsoft.publi c.dotnet.langua ges.vb:221371 X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.vb
Believe it or not, we found out that the problem was with WeatherBug. The customer that was having this error with our app took off WeatherBug and the problem went away. Don't know what WeatherBug does that messes up .NET, but it sure was causing that issue.
Anyway, that fixed it.
Tom
"Craig Vick [MSFT]" <cr*****@online .microsoft.com> wrote in message news:tK******* *********@cpmsf tngxa10.phx.gbl ... Hi Tom,
I have a couple of questions:
1. Does this error occur on any Form or just a specific Form? 2. If the answer to 1 is a specific Form than what code is in the constructor (New()) of this form? Craig VB.Net Team -------------------------------------------------------------------- This reply is provided AS IS, without warranty (express or implied).
-------------------- >From: "Tom" <to*@nospam.com > >Subject: Overflow or underflow in the arithmetic operation wheninstantiatin g form >Date: Mon, 26 Jul 2004 14:11:31 -0400 >Lines: 20 >X-Priority: 3 >X-MSMail-Priority: Normal >X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 >Message-ID: <#C************ **@tk2msftngp13 .phx.gbl> >Newsgroups: microsoft.publi c.dotnet.langua ges.vb >NNTP-Posting-Host: fw.paragen.com 66.184.200.226 >Path:cpmsftngxa06.p hx.gbl!TK2MSFTN GXA01.phx.gbl!T K2MSFTNGP08.phx .gbl!tk2msftngp 13 .phx.gbl >Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.vb:219139 >X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.vb > >I have a VB.NET framework 1.1 application that I am installing on myuser's >workstation. It works fine on EVERY machine except for one - on this one >machine it generates a 'Overflow or underflow in the arithmeticoperation' >when I attempt to instantiate my first form, as so: > >Dim frm As New frmMyForm() > >Based on some things I saw here, I thought it might be that thisworkstation >didn't have a MS Sans Seriff font on it (since that is the forms default >font); however, turns out it did have the font installed. I even went sofar >as to delete the sans seriff font and copy the one from my machine tothis >one (in case the font was corrupted)... no difference, still has the same >error. > >Any ideas? What else should I look for that could be different on this >machine? > >Tom > > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: William Ryan |
last post by:
As an experienced Java Programmer, trust me on this,
stick with .NET if you are already using it.
It's hard to tell based on what you post. Is all of your
code wrapped in an exception handler? Somewhere when the
form is initialized or Form Load, I'd add a try catch and
trap System.ArithmeticException... Step through each
line with the debugger and if you post the line (ideally
with the whole code snippet) I think we can figure it out.
|
by: Oplec |
last post by:
Hello,
How can underflow and overflow of the basic arithmetic types be tested
for using standard C++?
For instance, if two long doubles are multiplied together, test whether
or not the result is too large to fit in a long double?
Thank you for your time, Oplec.
|
by: Codemonkey |
last post by:
Hi,
When I first installed Visual Studio 2003, I noticed I was getting the
follow error when showing a form:
A first chance exception of type 'System.ArithmeticException' occurred in
system.drawing.dll
Additional information: Overflow or underflow in the arithmetic operation
It is being thrown on the line that attempts to add the controls to the
|
by: Paul Emmons |
last post by:
Can anyone suggest example code, or how to proceed, in adding or
subtracting two long long integers (I'm working in gcc with Linux,
where a long long is 64 bits) and determining whether an overflow or
underflow occurs, invalidating the result?
I have written a solution in assembler. It's simple, thanks to the
overflow flag. But without access to this part of the hardware in the
C language, how would one do it?
Thank you for your...
|
by: Ian Pilcher |
last post by:
I'm trying to figure out if an increment to a variable of an integer
type, followed by a decrement, (or vice versa) is guaranteed to restore
the variable to its initial value, even if the first operation causes
the variable to overflow/underflow.
In other words, if foo_t is an integer type, are the following two
functions guaranteed to *always* return a non-zero value?
int check_overflow(foo_t f)
{
| |
by: glenn |
last post by:
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...
|
by: jer006 |
last post by:
Hi I am writing a select statement that has an arithmetic function
inside a case statement that uses logic to decide whether to divide or
multiply and when I run the arithmetic statements outside the case
statement they work fine, but blow up with an overflow error in the
case statement. The select looks like:
SELECT a.acct_cd,
a.crrncy_cd,
a.mkt_val,
c.rate,
|
by: Raymond |
last post by:
Source:
http://moryton.blogspot.com/2007/08/detecting-overflowunderflow-when.html
Example from source:
char unsigned augend (255);
char unsigned const addend (255);
char unsigned const sum (augend + addend);
if (sum < augend)
|
by: thomas.mertes |
last post by:
Is it possible to use some C or compiler extension to catch
integer overflow?
The situation is as follows:
I use C as target language for compiled Seed7 programs.
For integer computions the C type 'long' is used.
That way native C speed can be reached.
Now I want to experiment with raising a Seed7 exception
(which is emulated with setjmp(), longjmp() in C) for integer
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |