runtime-error

Python - I can't see my what my error is because the window disappears immediately

余生颓废 提交于 2019-11-28 14:29:43
I am pretty new to Python and I have been pretty annoyed with this problem. I am not sure if this matters, but I run my .py file with Python 2.7.6 with python installed on my computer, not using it on any online thing or other program. Every time I come across an error, my program works fine until it comes to the error, but the window disappears right before I can possibly read whatever the error said it was... Anyways, I haven't been able to find out what is wrong with my programming, and I am tired of guessing and guessing what is wrong. How can I extend the time so I can read the error

your content must have a listview whose id attribute is ' android.r.id.list ' .

蹲街弑〆低调 提交于 2019-11-28 13:54:09
I write the program but when i run this program, the program has runtime error :( The error in LogCat is : your content must have a listview whose id attribute is 'android.r.id.list' I set android:id="@android:id/list" in ListView in activity_main.xml file. I write my code, Please read this and help me . MainActivity.java: public class MainActivity extends ListActivity { private TextView text; private static final String[] items={"test", "test1" , "test2" , "test3" , "test4" , "test5" , "test6"}; @Override public void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState);

How to get users to read error messages?

落花浮王杯 提交于 2019-11-28 13:26:43
问题 If you program for a nontechnical audience, you find yourself at a high risk that users will not read your carefully worded and enlightening error messages, but just click on the first button available with a shrug of frustration. So, I'm wondering what good practices you can recommend to help users actually read your error message, instead of simply waiving it aside. Ideas I can think of would fall along the lines of: Formatting of course help; maybe a simple, short message, with a "learn

C++ assertion error while deleting object

不想你离开。 提交于 2019-11-28 13:21:29
问题 I have strange assertion error and I can not find what is wrong with this code. Assertion expression is _BLOCK_TYPE_IS_VALID(pHead->nBlockUse). I simplified code a bit for better readability. class Creator { public: virtual ~Creator() { for (MyObject* item : _list) { delete item; <-- assertion error here item = 0; } _list.clear(); } template <class T> T& create() { T * item = new T(); _list.push_back(item); return *item; } private: std::list<MyObject*> _list; }; class A : public MyObject,

Android: runtime-error 'Unable to create directory', on use of class DownloadManager, method setDestinationInExternalPublicDir

拥有回忆 提交于 2019-11-28 12:30:11
I'm getting this exception: 10-24 17:08:19.711: E/AndroidRuntime(1379): FATAL EXCEPTION: main 10-24 17:08:19.711: E/AndroidRuntime(1379): java.lang.RuntimeException: Unable to start activity ComponentInfo{br.com.campusfqm.cfqm/br.com.campusfqm.cfqm.DownloadManagerActivity}: java.lang.IllegalStateException: Unable to create directory: /mnt/sdcard/Download 10-24 17:08:19.711: E/AndroidRuntime(1379): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1736) 10-24 17:08:19.711: E/AndroidRuntime(1379): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1752)

Disable Microsoft Visual C++ Runtime Error

风格不统一 提交于 2019-11-28 12:18:37
If my application crashes, a Microsoft Visual C++ Runtime Library "Runtime Error!" occurs. The text of the message is: This applicaton has requested the Runtime to terminate in an unusual way. Please contact the application's support team for more information. I know, that I need to solve all these issues, but I imagine that this error did not appear in the past. Is there an option in Visual Studio 2005 to enable/disable such error (handling)?. Instead I expect the application to just crash/exit and offer an Microsoft Windows Error Report. This error message appears if an exception is not

Why is 0 divided by 0 throwing an overflow error in VBA?

那年仲夏 提交于 2019-11-28 12:04:42
Why is 0/0 throwing Overflow error in VBA, while in .Net languages it is simply a Division by 0 error? E.g., in C# it is a System.DivideByZeroException static void Main() { int k = 0; int p = 0; Console.WriteLine(k/p); } Div/0 error exists in VBA . But 0/0 gives an overflow exception , while anything else divided by 0 gives a Div/0 exception: Public Sub TestMe() 'Integer PrintAndCheck (11) '- Division by zero error 'Double PrintAndCheck (0.9) '- Division by zero error 'Long PrintAndCheck (50000) '- Division by zero error 'String PrintAndCheck ("1.1") '- Division by zero error '----------------

Weird error after Perl upgrade: Unable to flush stdout

隐身守侯 提交于 2019-11-28 11:48:54
After upgrading to Perl 5.24.4 we repeatedly get this error in logs (without pointing the filename and line number): Unable to flush stdout: Broken pipe We have no idea what causes this error. Is there any advice how to understand the cause of the error? The error comes from perl.c, line 595 : PerlIO_printf(PerlIO_stderr(), "Unable to flush stdout: %s", Strerror(errno)); This line is part of perl_destruct , which is called to shut down the perl interpreter at the end of the program. As part of the global shutdown procedure, all still open filehandles are flushed (i.e. all buffered output is

Fitting a student t distribution in R using fitdistr() yields error “non-finite finite-difference value”

六月ゝ 毕业季﹏ 提交于 2019-11-28 11:34:51
问题 Reproducable example which will give the mentioned error code every time is: (Note that even without set.seed, the error comes up every time) library(MASS) set.seed(seed = 1) data<-rnorm(n = 10000,mean = 0.0002,sd = 0.001) fitdistr(x = data,densfun = "t") The error message is: Error in stats::optim(x = c(-0.000426453810742332, 0.000383643324222082, : non-finite finite-difference value [2] In addition: Warning message: In log(s) : NaNs produced The problem is the "non-finite finite-difference

Error running node app in WebMatrix

不打扰是莪最后的温柔 提交于 2019-11-28 11:26:08
I installed WebMatrix and followed these instructions to install IIS 7 on my Windows 7 machine. When I click 'Run' to run my express node app, the browser pops up and tells me The iisnode module is unable to start the node.exe process. Make sure the node.exe executable is available at the location specified in the system.webServer/iisnode/@nodeProcessCommandLine element of web.config. By default node.exe is expected to be installed in %ProgramFiles%\nodejs folder on x86 systems and %ProgramFiles(x86)%\nodejs folder on x64 systems. Here is my web.config: <configuration> <system.webServer>