runtimeerror

How to work around needing to update a dictionary

I need to delete a k/v pair from a dictionary in a loop. After getting RuntimeError: dictionary changed size during iteration I pickled the dictionary after deleting the k/v and in one of the outer loops I try to reopen the newly pickled/updated dictionary. However, as many of you will probably know-I get the same error-I think when it...

What is the error in this code?

I have created a code in C++ that is supposed to display an O and an X, and you can move the O with w/a/s/d, and the X moves randomly. It compiles fine, but when I run it, there is an O, but no X. I put the source code here: #include <iostream> using namespace std; //program class: defines player, enemies and powerups #include<stdlib...

Java Runtime.getRuntime() problem

I'm having some problems with getting the .getruntime.exec() to work properly. Here is the code dealing with that part: while (line != null) { String name = line; String commandFull = commandFirst + name + commandLast; String[] fullCommand = new String[] {commandFirst, name, commandLast}; for(int i=0;i<3;i++) { System.out...

Silverlight Runtime Error 1001

So I have a deployed Silverlight app that works fine on most client machines. However, I have 1 client machine (Windows Vista / IE8) that throws the following javascript error: Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.30729; ....

why's this program giving a runtime error on jcreator but not on netbeans?

This is my solution for sphere's online judge palin problem. It runs fine on Netbeans, but the judge is rejecting my answer saying it gives a RuntimeError. I tried it on JCreator and it says: Exception in thread "main" java.lang.NumberFormatException: For input string: "" at java.lang.NumberFormatException.forInputString(NumberForma...

ASP.Net web site gets burst of requests that crashes IIS worker process

I'm running a fairly high volume asp.net web site across a two serve cluster. Typical load is around 20 requests/second per server as logged by the ASP.Net Apps performance object. At periodic times during the day the performance counter logs anywhere from 2,000 to 9,000 requests/second. The worker process dies at this time and reports ...

How to refactor VB6 code to prevent run-time errors

A VB6 app is experiencing a run-time errors at a variety of places. I know this is the result of poor error handling, but is it possible to analyse the code to see where it is susceptible to run-time errors? ...

Redirect RuntimeError to log instead of console in wxPython?

How do I redirect RuntimeError to log instead of the console? In the code below, the 'Hello' is printed to console, which is redirected to the wx.TextCtrl. The RuntimeError raised OnClose is printed to the terminal however. How do I redirect the RuntimeError to see same log as the 'Hello'? import sys import wx class RedirectText: ...