Click here to Skip to main content
15,914,221 members
Home / Discussions / C#
   

C#

 
GeneralRe: create a new file with exclusive owner mode Pin
Ed.Poore24-Apr-08 21:19
Ed.Poore24-Apr-08 21:19 
GeneralRe: create a new file with exclusive owner mode Pin
George_George24-Apr-08 21:30
George_George24-Apr-08 21:30 
GeneralRe: create a new file with exclusive owner mode Pin
Vasudevan Deepak Kumar24-Apr-08 21:22
Vasudevan Deepak Kumar24-Apr-08 21:22 
GeneralRe: create a new file with exclusive owner mode Pin
George_George24-Apr-08 21:30
George_George24-Apr-08 21:30 
GeneralRe: create a new file with exclusive owner mode Pin
Vasudevan Deepak Kumar25-Apr-08 2:18
Vasudevan Deepak Kumar25-Apr-08 2:18 
GeneralRe: create a new file with exclusive owner mode Pin
George_George25-Apr-08 2:46
George_George25-Apr-08 2:46 
GeneraldateTimePicker in Datagrid Pin
Denver Thomas24-Apr-08 20:45
Denver Thomas24-Apr-08 20:45 
GeneralRe: dateTimePicker in Datagrid Pin
Mircea Puiu25-Apr-08 1:21
Mircea Puiu25-Apr-08 1:21 
GeneralSample code for using omni scanner in C# Pin
Rashmi_Karnam24-Apr-08 20:42
Rashmi_Karnam24-Apr-08 20:42 
GeneralRe: Sample code for using omni scanner in C# Pin
Vasudevan Deepak Kumar24-Apr-08 21:19
Vasudevan Deepak Kumar24-Apr-08 21:19 
GeneralWeb service function name to display spaces in framework 2.0 Pin
SB 24-Apr-08 19:44
SB 24-Apr-08 19:44 
GeneralRe: Web service function name to display spaces in framework 2.0 Pin
Spacix One25-Apr-08 2:33
Spacix One25-Apr-08 2:33 
QuestionRead Images from an excel file Pin
bejoy1234524-Apr-08 19:01
bejoy1234524-Apr-08 19:01 
QuestionERROR : Missing R3NAME=... or ASHOST=... in connect_param in RfcOpenEx Pin
woke24-Apr-08 17:49
woke24-Apr-08 17:49 
GeneralWrong Forum Pin
MumbleB24-Apr-08 20:20
MumbleB24-Apr-08 20:20 
Questionconnecting to a database Pin
csetopper_bhanu24-Apr-08 17:43
csetopper_bhanu24-Apr-08 17:43 
GeneralRe: connecting to a database Pin
DreamsHunter24-Apr-08 18:55
DreamsHunter24-Apr-08 18:55 
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

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.