exception

Calling method on category included from iPhone static library causes NSInvalidArgumentException

I have created a static library to house some of my code like categories. I have a category for UIViews in "UIView-Extensions.h" named Extensions. In this category I have a method called: - (void)fadeOutWithDelay:(CGFloat)delay duration:(CGFloat)duration; Calling this method works fine on the simulator on Debug configuration. Howe...

SQLite Exception: no such table Error android

Hi, we are trying to develop an application on android we are using SQLite Database and on phone we are getting SQLiteException:no such table. but, it is working fine on simulator. Can anyone provide any input on this? ...

Is there "Break on Exception" in IntelliJ?

Hi, Is there feature that will automatically break debugging on first exception occurrence? So we start application do something that throw exception got IntelliJ popped up highlighted line where exception occurred. ...

WCF throws FileNotFound exception for "System.ServiceModel" when creating ServiceHost.

I'm running into a really strange problem with WCF. I have 2 projects in a solution, each of them starts up some self-hosted WCF services. Project 1: myService = new ServiceHost(typeof(MyService1)); Which runs fine. However, when I try to run my 2nd project, which contains: meService = new ServiceHost(typeof(MyOtherService)); I g...

Why and how would you use Exceptions in this sample PHP code?

Hi, I've been wondering why would I use Exceptions in my PHP. Let's take a look at a simple example: class Worker { public function goToWork() { return $isInThatMood ? // Okay, I'll do it. true : // In your dreams... false; } } $worker = new Worker; if (!$worker->goToWork()) { if (date('l',time()) == 'Sunday') echo "F...

How can I avoid ResultSet is closed exception in Java?

As soon as my code gets to my while(rs.next()) loop it produces the ResultSet is closed exception. What causes this exception and how can I correct for it? EDIT: I notice in my code that I am nesting while(rs.next()) loop with another (rs2.next()), both result sets coming from the same DB, is this an issue? ...

Run-time Error on deployed project using DAAB 4.1

I'm having a weird problem on deployment while trying to use Microsoft Enterprise Library's Data Access Application Block 4.1. I get the following Unhandled Exception when trying to use the element of the web application that utilizes the DAAB: Exception information: Exception type: BuildFailedException Exception message: The current ...

How do I pass an exception between threads in python

I need to pass exceptions across a thread boundary. I'm using python embedded in a non thread safe app which has one thread safe call, post_event(callable), which calls callable from its main thread. I am running a pygtk gui in a seperate thread, so when a button is clicked I post an event with post_event, and wait for it to finish bef...

All About Exceptions: What to do and Where to log?

My question actually comes in two parts hence the ambiguous title. Part One As far as I'm aware, you should never swallow an exception. Not even logging it and forgetting about. In general cases, I try to solve an exception and retry the code - for example, let's say I get a FileNotFound exception. I prompt the user to check the file ...

JAX-WS Exception

How to assign the fault field of the SOAPFaultException on the server side? ...

What exactly will happen if I disable C++ exceptions in a project?

Visual C++ has a compiler setting "Enable C++ Exceptions" which can be set to "No". What exactly will happen if I set it this way? My code never explicitly throws or catches exceptions (and therefore the first thrown exception will terminate the program anyway) and doesn't rely on stack unwinding - should I expect any more undesired beha...

How to simulate exceptions in C with goto?

I'm writing a concurrent transaction library in C and found the following problem. Let's consider a sample transaction member pseudo-code, where the "transaction" represents a communication channel with the transaction master: transaction = trans_join(); do_some_ops(); /* receive the data from the master */ trans_rcv(transaction, data...

Weird behavior caused by using .Net ComboBox properties SelectionStart & SelectionLength in "DropDownList" mode

We have a sample application with such handler for a combobox in "DropDownList" mode: private void comboBox1_Leave(object sender, EventArgs e) { comboBox1.SelectionStart = 0; comboBox1.SelectionLength = 0; } the code above behaves differently depending whether the application has CALLWNDPROC hook loaded or not. If application h...

Why does my servlet stacktrace show "Unknown Source" for my classes?

I'm currently using Apache Tomcat 5.5.16 to serve a Lucene-based search API. Lately I've been having some NullPointerExceptions inside my servlet class. The class is called com.my_company.search.servlet.SearchServlet. With certain types of input I can routinely create a NullPointerException, but I'm having trouble figuring out where e...

How to determine row/value throwing error in PL/SQL statement?

(Oracle PL/SQL) If I have a simple SQL statement that is throwing an error, ie: DECLARE v_sql_errm varchar2(2048); BEGIN UPDATE my_table SET my_column = do_something(my_column) WHERE my_column IS NOT NULL; EXCEPTION when others then -- How can I obtain the row/value causing the error (unknown)? v_sql...

Is there a way to dump a stack trace without throwing an exception in java?

I am thinking of creating a debug tool for my Java application. I am wondering if it is possible to get a stack trace, just like Exception.printStackTrace() but without actually throwing an exception? My goal is to in any given method, dump a stack to see who the method caller is. Any replies or thoughts concerning this would be reall...

Suppress First Chance Exceptions...

Is it possible to supress 1st chance supressions in Visual Studio (C# debugger) for specific lines of code? I want to use 1st chance exceptions in the debugger, but there are about 50 1st chance exceptions I need to go through every debug session before I get to the interesting code. Currently, I turn off 1st chance exceptions and then...

How to handle StackOverflowError in Java ?

How to handle StackOverflowError in Java ? ...

.NET - First chance exception listener for intensive debugging?

This is probably unrealistic, but would it be possible to enable a component to be notified of all first chance exceptions occuring in its process? We have some third-party (contracted by us) components which fail to do anything but eat excepitions and the politics of the business relationship make the whole ordeal a royal pain. We als...

Class problem

Hi all. i have a class library and it has a folder. My project's classes are in that folder. I can use the class which is without that folder. But i can't use classes which is in that folder. For example: without that folder: Example exmp = new Example(); i can use exmp normaly. in the folder: User user = new User(); i m using asp...