newby question.

  • Thread starter Thread starter Damien
  • Start date Start date
D

Damien

Heu guys,

I have just built a simple stopwatch application, but when i f5 to get
things goings i get this message,


An unhandled exception of type 'System.ArithmeticException' occurred in
system.drawing.dll
Additional information: Overflow or underflow in the arithmetic operation.


can anyone help??
 
Hi Damien,
You have caused an unhandled exception by some math
operation, such as divide by zero or something simelar. Put your code in a
try catch block to get more information.

Try
'Your code goes here

Catch ex as Exception

messagebox.show( ex.toString()

End Try

This will help you define the problem.


Regards - OHM
 
.. . .
An unhandled exception of type 'System.ArithmeticException' occurred
in system.drawing.dll
Additional information: Overflow or underflow in the arithmetic operation.
can anyone help??

Only by pure guesswork without seeing the actual code.

First guesses would be dividing by zero using integral data types
(Integers, Longs and such like) - the cleverer number types don't
display different symptoms or dodgy arguments to the Trigonometrical
functions you're using to draw your "stopwatch".

HTH,
Phill W.
 
* "Damien said:
I have just built a simple stopwatch application, but when i f5 to get
things goings i get this message,

An unhandled exception of type 'System.ArithmeticException' occurred in
system.drawing.dll
Additional information: Overflow or underflow in the arithmetic operation.

This error can be caused by font calculations in 'Sub
InitializeComponent'. Sorry, I don't know any fix...
 
this is the line that keeps getting highlighted!!

Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.lblElapsed,
Me.lblEnd, Me.lblStart, Me.Label3, Me.Label2, Me.Label1, Me.btnExit,
Me.btnEnd, Me.btnStart})



could any one please help??
 
You project cant be very big, please post the code as an attachment, or past
the relevant code.


Regards - OHM
 
Back
Top