LastInput.time is an Integer and m_idleTime is an Integer too. This line sometimes generates an Overflow exception, I think that this happens when both values are big negative values.
(Environment.TickCount - lastInput.time) > m_idleTime
How can I avoid that? With casting?
(CType(Environment.TickCount,Long) - CType(lastInput.time,Lon...
Hi
Business logic is coded in pl/sql packages procedures and functions.
Java programs call pl/sql packages procedures and functions to do database work.
pl/sql programs store exceptions into Oracle tables whenever an exception is raised.
How would my java programs get the exceptions since the exception instead of being propagated from...
Hello,
I have a problem with writing a catch clause for an exception that is a class nested in a template. To be more specific, I have a following definition of the template and exception:
/** Generic stack implementation.
Accepts std::list, std::deque and std::vector
as inner container. */
template <
typename T,
template ...
I have a block of XAML of which i'm trying to deserialize. For arguments sake lets say it looks like below.
<NS:SomeObject>
<NS:SomeObject.SomeProperty>
<NS:SomeDifferentObject SomeOtherProp="a value"/>
</NS:SomeObject.SomeProperty>
</NS:SomeObject>
Of which i deserialise using the following code.
XamlReader.Load(File.OpenRe...
Oracle JDBC connection with Weblogic 10 datasource mapping, giving problem java.sql.SQLException: Closed Connection
I am using weblogic 10 JNDI datasource to create JDBC connections, below is my config
<?xml version="1.0" encoding="UTF-8"?>
<jdbc-data-source xmlns="http://www.bea.com/ns/weblogic/90" xmlns:sec="http://www.bea.com/ns/web...
Hi,
I'm getting the following error whenever my code creates a DataTableReader from a valid DataTable Object:
"DataTableReader is invalid for current DataTable 'TempTable'."
The thing is, if I reboot my machine, it works fine for an undetermined amount of time, then dies with the above. The code that throws this error could have been ...
Assuming a method with the following signature
bool TryXxxx(object something, out int toReturn)
What is it acceptable for toReturn to be if TryXxxx returns false?
In that it's infered that toReturn should never be used if TryXxxx fails does it matter?
If toReturn was a nulable type, then it would make sense to return null. But int i...
Hi,
I am getting exception when i am trying to open an applet in my jsp.
My jsp and applet is in same directory.
My code is like:
<object
classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
width="720"
height="500"`enter code here`
type="application/x-java-applet;version=1.5">
<param name="type" value="app...
Good day.
I'm using Doctrine as ORM for my Zend Framework project. This is the first time I use it. I've followed the ZendCasts Doctrine chapters, and everything works for me, but I needed to perform some profiling;
There is a Doctrine_Connection_Profiler class that should be used to profile the Doctrine Model internal queries, but I'v...
I understand it doesn't throw an Exception and because of that it might be sightly faster, but also, you're most likely using it to convert input to data you can use, so I don't think it's used so often to make that much of difference in terms of performance.
Anyway, the examples I saw are all along the lines of an if/else block with Tr...
Hi
The specification of ReadableByteChannel.read() shows -1 as result value for end-of-stream. Moreover it specifies ClosedByInterruptExceptionas possible result if the thread is interrupted.
Now I thought that would be all - and it is most of the time. However, now and then I get the following:
java.io.IOException: Eine vorhandene Ve...
I downloaded the most recent version of Android for linux (android-sdk_r05-linux_86.tgz). I was trying to use the the Android Ant task(s) for packaging, building, and deploying my code. I should mention that I'm running AMD64, but have the 32-bit libraries installed. The Android Ant tasks are all broken.
First, the start-emulator tas...
Hi!
I am using mysql as db for my asp.net application. Here are the facts:
I am using connection string from web.config which has both username and password.
I can do SELECT with tableadapter.
When I am trying to do INSERT with tableadapter, I am getting "mysqlexception insert command denied for user" error
When I try to do INSERT pr...
Hi,
i'am using JSF and Spring in a web application. If the Spring Controller throws exceptions i map them to special views.
Now I'd like to catch all exceptions which are thrown out of scope of the Spring Context.
In my web.xml i've defined an error page.
<!-- handle uncaught exceptions -->
<error-page>
<exception-type>java.lang....
In C#, will the folloing code throw e containing the additional information up the call stack?
...
catch(Exception e)
{
e.Data.Add("Additional information","blah blah");
throw;
}
...
Recently I encountered a bug in an application I took over from another developer. I debugged for the reason and over an hour later I realized, that the problem wasn't the code producing the exception, but some code executed before this returning wrong data. If I dived into this, I encountered the following:
try {
...
} catch (XYExcep...
I am developing an ASP.Net MVC application that throws a "Required permissions cannot be acquired" exception.
The weird thing is that if I change the location of the folder containing my app to another location, the app runs just fine. (i.e Copy the folder from .../Programs/MyApp to ...Desktop/MyApp)
I have checked the folder permission...
Hi!
I am using mysql as db for my asp.net application. Here are the facts:
I am using connection string from web.config which has both username and password.
I can do SELECT with tableadapter.
When I am trying to do INSERT with tableadapter, I am getting "mysqlexception insert command denied for user" error
When I try to do INSERT prog...
Dear colleagues,
I need raise an exception from C++ code. Raised exception must contain text and code of error.
So common form:
ThrowNew(jclass clazz, const char *msg)
is not applicable. That is why I want create my own instance of java class:
public class MyException extends Exception
that contains one more property for code. Bu...
I'm debugging a service that's experiencing some problems on start-up. To aid me in this, I'm wrapping pretty much everything in a try/catch block, and writing any errors to a file. I don't want to put them in every method, I just want to put them in the highest level methods so that they catch exceptions from other methods.
Something i...