I have a wcf service that uses callbacks with DualHttpBindings. The service pushes back a datatable of search results the client (for a long running search) as it finds them.
This worked fine in .Net 3.5. Since I updated to .Net 4.0, it bombs out with a System.Runtime.FatalException that actually kills the IIS worker process. I have no...
I have an API which internally has some exceptions for error reporting. The basic structure is that it has a root exception object which inherits from std::exception, then it will throw some subclass of that.
Since catching an exception thrown in one library or thread and catching it in another can lead to undefined behavior (at least Q...
Imagine I have a class like this:
class A
attr_accessor :a
attr_accessor :b
def check
raise "a must meet some condition" if !condition(@a)
raise "b must meet some condition" if !condition(@b)
end
def do_some_work
check()
# more work here
end
def do_some_more_work
check()
# othe...
I have this code:
public static String SelectRandomFromTemplate(String template,int count) {
String[] split = template.split("|");
List<String> list=Arrays.asList(split);
Random r = new Random();
while (list.size()>count) {
list.remove(r.nextInt(list.size()));
}
return StringUt...
Hi,
i've build an AlertDialog which shows three items:
AlertDialog.Builder builder = new AlertDialog.Builder(myActivity);
...
builder.setItems(items, new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int item) {
if(item==0){ //do stuff}
...
When I was searching for a distinction between Exceptions and Interrupts,
I found this question Interrupts and exceptions on SO...
Some answers there were not suitable (at least for assembly level):
"Exception are software-version of an interrupt" But there exist software interrupts!!
"Interrupts are asynchronous but exceptions are s...
Hi.
The following exception thrown for Spring Batch application:
19:12:40,083 ERROR main AbstractStep:213 - Encountered an error executing the step
javax.persistence.TransactionRequiredException: Executing an update/delete query
Code,where named query used:
entityManagerFactory.createEntityManager()
.createNamedQu...
when I try to make httpclient connection to get the url information,I am getting
Exception in thread "Timeout guard"
2010-05-29 19:42:00,048 ERROR [STDERR] java.lang.NoClassDefFoundError: org/apache/commons/httpclient/protocol/ProtocolSocketFactory
2010-05-29 19:42:00,048 ERROR [STDERR] at org.apache.commons.httpclient.protocol.Contro...
Hello everybody,
I'm new in Android development and I have the next question/problem.
I'm playing around with the MediaRecorder class to record just audio from the microphone. I'm following the steps indicated in the official site: http://developer.android.com/reference/android/media/MediaRecorder.html
So I have a method that initial...
Please, explain your thoughts.
1. DateTime dt = System.IO.File.GetLastAccessTime("C:\\There_is_no_such_file.txt");
2. DateTime dt = System.IO.File.GetLastAccessTime("");
If the file described in the path parameter does not exist, this method returns 12:00 midnight, January 1, 1601 A.D. (C.E.) Coordinated Universal Time (UTC), adju...
I am using enterprize library 5.0 with c# for exception handling and for that I am using formatter.Now In my log file Timestamp is not giving the right time.
Can I change the value of timestamp in formatter.
...
I want to log those uncaught exceptions of my as3 program. The problem is, where do those uncaught exceptions go? How can I catch them?
Thanks.
...
Hi folks,
I'd like to know if there is a way to throw an Exception from inside a function, but to not include that function in the exception stack trace. E.g.
void ThrowException()
{
throw Exeption();
}
And then, if I call that function from a function called foo() I want the exception stack trace to start with at foo(), not at ...
Hi
I am getting this message on emulator when I run my android project:
The application MediaPlayerDemo_Video.java (process com.android.MediaPlayerDemo_Video) has stopped unexpectedly. Please try again
I am trying to run the MediaPlayerDemo_Video.java given in ApiDemos in the Samples given on developer.android.com.
The code is ...
Hey,
I get an AccessViolationException when I try to start debuggin a C#-MVC2-webproject in VisualStudio 2010. But there is no Stacktrace or indication where the error occurs.
When I switch from degub-mode to release-mode I get the error "unknown software error" (0xe0434352) [...] at (0x765e5b727). The window has the title from the ASP....
Hi,
My WCF Service when hosted is throwing an error:
WCF Service PayThisException: Required attribute 'binding' not found. (C:\Temp\WCFVirtualDirPath\web.config line 278)
Please help me with some solution.
Cheers,
Ravi Santlani
...
When a is undefined, then a || 1 will throw an error, but a = a || 1 will not. Isn't that a little bit inconsistent?
irb(main):001:0> a
NameError: undefined local variable or method 'a' for main:Object
from (irb):1
from c:/ruby/bin/irb:12:in '<main>'
irb(main):002:0> a || 1
NameError: undefined local variable or method...
I have noticed that in the Ruby exception hierarchy, there are "errors" such as ArgumentError and there are "exceptions" such as SignalException. Is there a certain practise of naming exceptions? thanks in advance, ell.
...
Working with COM interop, I can call a managed function from within unmanaged code.
But, this only gives me the HRESULT for the exception, in case a managed exception is thrown.
Is there anyway to further inspect the exception from the unmanaged code? For example, to look at the message contained in the exception object.
Thanks!
...
I am using gdi+ for image format checking.
It is really surprising that gdi+
Image img(path);
does not throw exception when a device is removed.
for example, I am checking a list of image files on a removable device.
I plug the disk off,
Then My Application will crashed.
How can I avoid such problem?
Many Thanks!
I am using c++ gdi+ wi...