473,581 Members | 2,424 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

'System.Arithme ticException' occurred in system.drawing. dll

Hi all...

I am trying to create a Windows Application in VS.NET. If I
create a new app in either VB or C# and add any control, I get the
following message
when I run the app:

An unhandled exception of type 'System.Arithme ticException' occurred in
system.drawing. dll
Additional information: Overflow or underflow in the arithmetic
operation. If I remove all controls, it runs fine, albeit with a blank
form. But the Web applications r working fine.. Plz give a correct
solution....
Looking forward ur Reply...
Regards,
Krish.

Feb 15 '06 #1
1 1769
co*******@gmail .com wrote:
I am trying to create a Windows Application in VS.NET. If I
create a new app in either VB or C# and add any control, I get the
following message when I run the app:

An unhandled exception of type 'System.Arithme ticException' occurred
in system.drawing. dll


Hi Krish. A number of people have experienced this problem. This will occur
if you manipulated the floating-point control register (Q326219), but I
assume you have not done this - however, it is possible you are using a
driver or have a third-party program installed which is doing so. The best
advice I can give you right now is this: Try rebooting in safe mode, which
is Standard VGA only. See if it still reproduces. If it does, try updating
your graphics card driver, and then if that doesn't work, try changing your
graphics card. Try reinstalling the .NET Framework. If none of this helps,
try uninstalling applications or devices that might be interfering. As a
last resort, reformatting and reinstalling the OS might eliminate the
conflicting component. Sorry that I can't suggest a less drastic action.
--
Derrick Coetzee, MCAD, MSFT (Speech Server)
This posting is provided "AS IS" with no warranties, and confers no
rights.
Feb 16 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
9122
by: Terrence | last post by:
I am doing some of the C# walkthroughs to transition from VB to C#. When I try to execute static void Main() { Aplication.Run(new Form1()) } I raise a 'System.NullReferenceException" in system.windows.forms.dll
0
1605
by: Brian Daoust | last post by:
Hello everyone! I just installed Visual Studio .NET (2002) and just getting to learn it. I added a data form using the wizard - and it was working fine. Now, when I run it with F5 - I am getting this:
1
5962
by: gregory_may | last post by:
This code seems to "work" but I get the following errors: An unhandled exception of type 'System.NullReferenceException' occurred in system.windows.forms.dll then this one: An unhandled exception of type 'System.ExecutionEngineException' occurred in system.windows.forms.dll Anyone know how to either trap these errors or prevent them from...
1
2098
by: Ronald | last post by:
I just wrote some code on a dev machine, Imports System.Xml Imports System.Xml.XPath Imports System.Xml.Xsl Imports System.IO Imports System.Data.SqlClient Public Class ClassXMLtoHTML Dim myXslTransform As XslTransform Sub New(ByVal strXSL As String)
11
3733
by: Andreas Wirén | last post by:
Hi I'm a C# .NET newbie doing a minor school project but I'm getting a strange error message. 'System.NullReferenceException' occurred in system.windows.forms.dll Additional information: Object reference not set to an instance of an object." As my references look I seem to be using the old framework(1.0.3705) for this, but re-referencing...
6
1864
by: tom k. | last post by:
H I have XP and can't run any of my Visual Basic .net projects. I get this error every time I try to run one: An unhandled exception of type 'System.ArithmeticException' occurred in system.drawing.dl Additional information: Overflow or underflow in the arithmetic operation I should note this never happened until I reinstalled XP and .net...
3
1712
by: mfc2004 | last post by:
Hi, I have a pc with windows XP SP1, net Framworks 1.1 and visual studio net 2003 When I first installed Visual Studio 2003, I noticed I was getting th follow error when showing a form A first chance exception of type 'System.ArithmeticException' occurred i system.drawing.dl Additional information: Overflow or underflow in the arithmetic...
2
1351
by: | last post by:
Hi, I'm using Windows XP SP1 with Visual Studio 2003. I add a blank form to a project, then I add a default control of any type (label, button, etc) to that form. When I build and run the project, it gets a 'System.ArithmeticException' error at the point where it's adding the control to the 'Controls' collection of the form. Again, both...
1
1775
by: chintu rana via DotNetMonster.com | last post by:
An unhandled exception of type 'System.ArithmeticException' occurred in system.drawing.dll Additional information: Overflow or underflow in the arithmetic operation. if i run vb.net application with only form no any controls at that time there is no error . But if i put first control (command button or label or textbox ) and run...
0
8510
by: Nikhil Khade | last post by:
Hello, After around 3 months, I reopened a old VB.NET solutions which used to work (and build) without any errors. Just to test it again, I build it again and it completed, without any errors, but then immediately started showing me the message "An unhandled exception of type 'System.StackOverflowException' occurred in mscorlib.dll" at...
0
7857
marktang
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...
0
8137
Oralloy
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. ...
0
8299
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7890
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8163
tracyyun
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...
0
6545
agi2029
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...
1
5667
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3813
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2297
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 using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.