exception

VB.NET DataGridView "An item with the same key has already been added." while using a unique index

VB.NET 2010, .NET 4 Hello, I've looked around and can't seem to find a solution to my problem. I have an EventLog object which inherits DataGridView and has a public variable EventList which is a List(Of EventLogItem). EventLogItem has seven properties which describe the event, including Index which is set to EventList.Count each tim...

WebException: Unable to connect to the remote server

I have a client application that uses WebHttpRequest to get response from external server, it works fine but some times I'm getting the following exception .... System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did ...

Is it impossible to show forms when handling a AppDomain.CurrentDomain.UnhandledException?

Just a quick question. I can get a form to show with other exceptions, but with the type I'm asking about, I get the system "application is no longer working" dialog: Program.cs: #if !DEBUG // Add the event handler for handling UI thread exceptions to the event. Application.ThreadException += new ThreadExceptio...

Issue with exceptions being caught by Win32 message dispatcher

This is kinda a very low-level type question, but maybe someone here has some insight... I'm having an issue where unhandled SEH exceptions (such as Access Violations) are seemingly being caught at the Win32 message dispatch level, rather than terminating the program. I found the following reference blog, which explains the problem, but...

Problem with Debugging in C++ Builder 2009

Hi Friends I have a strange problem, I hope you can help me. I write a program in C++ Builder 2009, when I run the program without debugger I see an Exception raised. bun in debugger never exception raised and I cant find the exception point. And Also I enable the CodeGaurd in C++ for Finding the problem but the Exception never raised...

C++ catch with multiple parameters

First I found in cplusplus.com the following quote: The catch format is similar to a regular function that always has at least one parameter. But I tried this: try { int kk3,k4; kk3=3; k4=2; throw (kk3,"hello"); } catch (int param) { cout << "int exception"<<param<<endl; } catch (int param,string s) { ...

Java- String index out of bounds exception " String index out of Range"

I am new to java, and going to bite the bullet by asking what is I am sure, a dumb question. I created some methods, and simply wanted to call them in main. I am getting an error for the while loop in the main method. The compiler is saying " Exception in thread main java.lang.StringIndexOutOfBoundsException: String index out of range:0 ...

The process cannot access the file because it is being used by another process.

Hello everyone! I am adding images to a FlowLayoutPanel control via the following code Dim WithEvents Pedit As DevExpress.XtraEditors.PictureEdit Private Sub LoadImagesCommon(ByVal fi As FileInfo) Pedit = New DevExpress.XtraEditors.PictureEdit Pedit.Width = 133 Pedit.Height = 98 Pedit.Image = Image.From...

restart iterator on exceptions in Scala

I have an iterator (actually a Source.getLines) that's reading an infinite stream of data from a URL. Occasionally the iterator throws a java.io.IOException when there is a connection problem. In such situations, I need to re-connect and re-start the iterator. I want this to be seamless so that the iterator just looks like a normal itera...

How to get stack trace of an exception in Scala to print it?

In a program of mine I'd like to catch all exceptions and explicitly print them (to be able to proceed with finally while still seeing exceptions). So I've tried this: try { ... } catch { case ex : Exception => { println ("\n" + ex) println ("\n" + ex.getStackTrace + "\n") } } finally { ... } But this (using getSta...

wcf exception when the dataload increases

iam working in an silverlight application witha datgrid displaying the records as per the value of a text box when the records exceeds 3000 it displays an error as below and it works fine when the rcord count is below 3000 ? how to overcome this exception or to handle this base {System.Net.WebException: The remote server re...

Weird IOException with File.Copy: Non-existing file allegedly in use by another process

Hi everyone, This is driving me nuts. I retrieve a bunch of emails from a mailbox and save them as files in a folder. There is currently just one mail in the mailbox (this specific mail is not the problem, tried others as well). After retrieval I concatenate the subject of the mail with a unique GUID-string, save it as a file and creat...

is the Java Servlet I've created in Netbeans adding something strange?

Hi, This is my second try to solve this problem. My first try was here but perhaps my explanation of my problem was insufficient, my problem was that the applet received the exception: java.io.StreamCorruptedException: invalid stream header: 0A0A0A3C at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:783) at java....

WPF Recursive call to Automation Peer API is not valid

I am receiving an error message "Recursive call to Automation Peer API is not valid" when loading a datagrid with a datatemplatecolumn containing a combobox column. The error ends up caught in our unhandled exception code. This seems to be an issue on my machine, and google has provided no source of guidance on resolving the issue. The i...

NServiceBus FullDuplex Sample Unit Test Fails (VS2010)

When I try to run the NUnit unit test for the FullDuplex sample I get the following exception. I am using the NServiceBus version for .NET Framework 4. I have not changed anything in the sample (other than to convert to VS2010 and change the .NET Framework version to 4.0 so it can use the .NET 4 binaries), and I am new to probably all of...

Android Hello World Exception

I am trying to get this hello world android application working. I go through this installation process and read about how easy this thing is to get up and running with a "Hello World" application. I run the simple hello world application (following every step exactly as it says) and POOF... nothing. I get an error java.lang.IllegalArgum...

MEF: "Unable to load one or more of the requested types. Retrieve the LoaderExceptions for more information".

Scenario: I am using Managed Extensibility Framework to load plugins (exports) at runtime based on an interface contract defined in a separate dll. In my Visual Studio solution, I have 3 different projects: The host application, a class library (defining the interface - "IPlugin") and another class library implementing the interface (the...

Why am I getting an ArrayIndexOutOfBounds exception?

private void equal_AxB() { int x = matrix_A.length; int y = matrix_B[0].length; matrix_C = new double[x][y]; for(int i = 0; i < x; i++) { for(int j = 0; j < y; j++) { for(int k = 0; k < y; k++){ matrix_C[i][j] += matrix_A[i][k]*matrix_B[k][j]; } } } return; ...

Why is Java's polymorphism failing to catch the right method when choosing between object and vector?

I have two similar methods. One is intended to handle objects, the other vectors: @SuppressWarnings("unused") private void printRows(PrintWriter out, Vector<?> dataOb, String[] columns, String[] columnType, Hashtable<?, ?> columnAccessors, String trOptions, String tdOptions) throws ServletException { ...

doubt in exception handling

I tried a simple code where user has to input a number. If user inputs a char it l produce numberformatexecption. That works fine. Now when i remove try catch block it shows error. What is the meaning of the error The code and error as follows import java.io.*; class execmain { public static void main(String[] args) { //...