exception

C++ Exception Handler problem ...

Hi, I written an exception handler routine that helps us catch problems with our software. I use SetUnhandledExceptionFilter(); to catch any uncaught exceptions, and it works very well. However my handler pop's up a dialog asking the user to detail what they were doing at the time of the crash. This is where the problem comes, becau...

DependencyProperty PropertyChangedCallback causes NullReferenceException in XAML

I've got a subclassed UserControl that is the content for my main window. I added a DepedencyProperty to my usercontrol, of type ResizeMode, and the PropertyChanged callback sets the ResizeMode of the main window to the value correctly. It runs fine. I can set it from the code behind, or from the XAML, and it works correctly. However, w...

What does the error "the exec task needs a command to execute" mean?

When compiling a project in Visual Studio, the error message "the exec task needs a command to execute" appears, with no line number. What does this error mean? (Apologies for asking and answering my own question; I just found an answer as I was writing this. Have made it community wiki, so as not to offend.) ...

IndexOutOfRangeException Deep in the bowels of NHibernate

I have the following mappings: public class SecurityMap : ClassMap<Security> { public SecurityMap() { Table("Security"); CompositeId().KeyProperty(k => k.Id, "SecurityId").KeyProperty(k => k.EndDate); Map(x => x.LastUpdateUser); References(x => x.Company).Columns("Compa...

Reference for predefined exceptions in .NET

Does a reference exist with a catalog of predefined exceptions for the .NET framework along with examples of when is it appropriate to use each? ...

How do i build 64bit asp.net projects?

I created a new project, build and run, it asked me to modify my web.config for debugging and i clicked yes. The projected loaded fine. I switched the target cpu from any to 64bits and i got an exception. How do i build and run 64bit projects? Server Error in '/' Application. Could not load file or assembly 'x64Test, Version=1.0.0.0, Cu...

Does a PHP exception stop execution?

<?php function some_function($arg) { if($filter->check_for_safe_input($arg)) { throw new Exception("Hacking Attempt"); } do_some_database_stuff($arg); } ?> In the above code example, does do_some_database_stuff ever get called if check_for_safe_input fails, or does the exception stop t...

How to fix java.net.SocketException: Broken pipe ?

Hi, I am using apache commons http client to call url using post method to post the parameters and getting the below error rarely. When I explore the reason, didnt get the exact reason for the cause. Can anyone suggest a way to fix this? java.net.SocketException: Broken pipe at java.net.SocketOutputStream.socketWrite0(Native M...

Problem with BIRT on Linux

Hello, I tried to use BIRT in my webapplication project. But I'm getting this kind of exception all the time: org.eclipse.birt.core.framework.FrameworkException: Could not find the Framework - org.eclipse.osgi at org.eclipse.birt.core.framework.osgi.OSGILauncher.doStartup(OSGILauncher.java:123) at org.eclipse.birt.core.framework.osgi...

Managed object context deleting then saving objects raises objc_exception_throw error

Hi, I have the following error while trying to call the save method on managedObjectContext. #0 0x939214e6 in objc_exception_throw #1 0x01ded83b in -[NSObject doesNotRecognizeSelector:] #2 0x01d84676 in ___forwarding___ #3 0x01d606c2 in __forwarding_prep_0___ #4 0x01c618b6 in -[NSFetchedResultsController(PrivateMethods) _managedOb...

FileNotFoundException when file exists with all permissions

Hi, I am trying to read a file and the error i get is java.io.FileNotFoundException: /homes/at1106/fourthYearComputing/Induvidual-Project/svn-workspace/trunk/Induvidual_Project/src/game/player/gametheoryagent/configurations/gameTheoryAgentConfiguration.properties (No such file or directory) at java.io.FileInputStream.open(Nat...

JMSException - examples of "temporary" troubles that shouldn't trigger reinitialization?

Looking for experiences others might have had. Or JMS spec citations, if you've got them. Our typical practice when handling a JMSException (in a try/catch or onException() method) is to fully tear down the existing JMS connection/sessions/... and reinitialize them. A developer asked if we were being too pessimistic. Are there cases ...

Visual Studio C++ exception... weirdness

Hi, I have a Qt application that I compile in release configuration, run, and then perform operation X in the program. Everything runs fine. I then compile it in debug configuration, run without debugging (so CTRL+F5), perform operation X in the program. Everything still runs dandy fine. But when I try to run the debug configuration w...

is it possible to replace the default "Force Close" dialog in Android?

I would like the users of my android app to have the option to email me the stacktrace of any uncaught exception that crashes my app. Originally I thought I would just wrap every entry point to my app in a try/catch block, but there are far too many of these even in my tiny app for this to be reasonable. So what I am really looking for...

Passing Exception as a part of response in WCF

Hi, I have somewhat unconventional use of exceptions in my app. If an exception happens in the method, I pass it as a part of the result object, smth like this: pubic class MethodResponse { public List<Exception> Errors {get; set;} public int SomeResult {get; set;} } Now, I'm separating Business layer and UI layer using WCF, and ...

Is this sort of Java exception style bad practice?

Is it considered bad practice to structure the code like this? public void whatever() { try { methodThatMayThrowIOException(); } catch(IOException io) { // do something with exception here } // do more stuff here that won't throw exceptions try { methodThatMayThrowCustomException(); } catch(CustomExcep...

What could be the possible cause of this exception?

I get the following error when I run a java program: Exception in thread "main" java.lang.UnsatisfiedLinkError: t2cPingDatabase at oracle.jdbc.driver.T2CConnection.t2cPingDatabase(Native Method) at oracle.jdbc.driver.T2CConnection.doPingDatabase(T2CConnection.java:503) at oracle.jdbc.driver.PhysicalConnection.pin...

What information does the ColdFusion exception variable provide?

I want find out as much as I can about any error that occurs on my ColdFusion page. Then, I want to save the information in a database. I am attempting to find a list of all the different properties contained in the exception object (which is a parameter of the OnError method), and I can't seem to find an exhaustive list. The list on the...

Codeigniter add Exceptions to Config class

Maybe, it's a bit silly, but does anybody thought about adding exceptions to Codeigniter Config Class(Library). Not sure, it is(will be) a good practice, but i suppose throwing an exception instead of just returning false is better. For example, if we have something connected with user payments. Usually(?), we'll take some configurable ...

How can I determine the current exception in a catch (...) block?

Possible Duplicate: Determining exception type after the exception is caught? Following up on this question , I'd like to print out the current exception in a catch(...) block -- just for logging. One answer there says that there is no standard way of doing this, but I don't like taking no for an answer :-) current_exception...