Click here to Skip to main content
15,891,513 members
Home / Discussions / C#
   

C#

 
GeneralRe: connecting to a database Pin
Vasudevan Deepak Kumar25-Apr-08 2:20
Vasudevan Deepak Kumar25-Apr-08 2:20 
General.NET 1.1 and Visual Studio 2005 Pin
YAI24-Apr-08 16:09
YAI24-Apr-08 16:09 
GeneralRe: .NET 1.1 and Visual Studio 2005 Pin
Zoltan Balazs24-Apr-08 20:18
Zoltan Balazs24-Apr-08 20:18 
GeneralRe: .NET 1.1 and Visual Studio 2005 Pin
Simon P Stevens24-Apr-08 21:48
Simon P Stevens24-Apr-08 21:48 
GeneralRe: .NET 1.1 and Visual Studio 2005 Pin
Spacix One25-Apr-08 2:04
Spacix One25-Apr-08 2:04 
GeneralRe: .NET 1.1 and Visual Studio 2005 Pin
Ajay.k_Singh25-Apr-08 3:58
Ajay.k_Singh25-Apr-08 3:58 
GeneralRe: .NET 1.1 and Visual Studio 2005 Pin
YAI25-Apr-08 21:43
YAI25-Apr-08 21:43 
GeneralSystem.OverflowException with TeeChart Pin
Peterson Luiz24-Apr-08 15:16
Peterson Luiz24-Apr-08 15:16 
Hello all,

I have a userControl that has a TeeChart embbeded. In this control, I have a method that reads data from a data source and fills up a teechart serie using serie.Add.

Everything seems to work fine, but, sometimes, I get a System.OverflowException, and my control becomes a white box with a red X in it.

I understand that the overflow exception can happen when casting numbers from double to int, for example, or dividing by zero. But I have already made sure that this is not happening in my code.

I have also used the 'unchecked' statement to prevent this exception to be shown, whith no success. And my compiler option is set to not check for overflows.

The error message shown is:

"An unhandled exception of type 'System.OverflowException' occurred in System.Windows.Forms.dll
Additional information: Overflow error."

Nothing more.
It does not say aritmethic overflow like a have seen with overflow error in number operations.
And what really bothers me is that the try catch block doesn't get the error. When I try to debug it, the cursor stops right after the Application.Run line at the Main method.

I have seen userControls ending with a red X before. This usually happens when we make another thread update the control. But I'm not doing this here. At least I don't think I am. I think this could be the case if the serie.Add method updates the teeChart from another thread. And if so, how can I get ride of this problem?? How can I even know if the teeChart is using another thread to update itself??

Anyone has any idea of what I can do to prevent this problem??
Thanks

Peterson

GeneralRe: System.OverflowException with TeeChart Pin
Christian Graus24-Apr-08 15:22
protectorChristian Graus24-Apr-08 15:22 
GeneralRe: System.OverflowException with TeeChart Pin
Peterson Luiz24-Apr-08 15:28
Peterson Luiz24-Apr-08 15:28 
GeneralRe: System.OverflowException with TeeChart Pin
Christian Graus24-Apr-08 15:31
protectorChristian Graus24-Apr-08 15:31 
GeneralDelayed request while waiting for data over an internet connection Pin
MAW3024-Apr-08 15:15
MAW3024-Apr-08 15:15 
QuestionSetup and deployment Pin
jharker198724-Apr-08 13:03
jharker198724-Apr-08 13:03 
GeneralRe: Setup and deployment Pin
Christian Graus24-Apr-08 13:06
protectorChristian Graus24-Apr-08 13:06 
GeneralRe: Setup and deployment Pin
jharker198724-Apr-08 13:07
jharker198724-Apr-08 13:07 
GeneralRe: Setup and deployment Pin
Spacix One24-Apr-08 13:23
Spacix One24-Apr-08 13:23 
GeneralRe: Setup and deployment Pin
jharker198725-Apr-08 2:26
jharker198725-Apr-08 2:26 
GeneralRe: Setup and deployment Pin
mav.northwind25-Apr-08 22:20
mav.northwind25-Apr-08 22:20 
GeneralListview interaction scheme question Pin
Spacix One24-Apr-08 12:55
Spacix One24-Apr-08 12:55 
QuestionNeed help with multi threaded modular application Pin
darthBug24-Apr-08 9:51
darthBug24-Apr-08 9:51 
GeneralRe: Need help with multi threaded modular application Pin
Luc Pattyn24-Apr-08 11:06
sitebuilderLuc Pattyn24-Apr-08 11:06 
GeneralRe: Need help with multi threaded modular application Pin
carbon_golem24-Apr-08 13:32
carbon_golem24-Apr-08 13:32 
GeneralRe: Need help with multi threaded modular application Pin
darthBug25-Apr-08 1:07
darthBug25-Apr-08 1:07 
GeneralRe: Need help with multi threaded modular application Pin
carbon_golem25-Apr-08 3:30
carbon_golem25-Apr-08 3:30 
QuestionEnumeration Location Pin
snorkie24-Apr-08 9:42
professionalsnorkie24-Apr-08 9:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.