runtime-error

What could cause Run-time error 1012 Error accessing application data directories

删除回忆录丶 提交于 2019-12-24 19:34:02
问题 Friend of mine has a problem :). There is an application written in Visual Basic 6.0 (not by him). One of users reported that when it run on Windows 2000 and tried to scan folders on disk it raised box with message: Run-time error 1012 Error accessing application data directories We couldn't google anything about it and didn't find anything about runtime error 1012 in VB6 help files. My guess was that VB calls some old API function which returns folder to which app has no access (private,

Weird error after Perl upgrade: Unable to flush stdout

我的未来我决定 提交于 2019-12-24 18:46:34
问题 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? 回答1: 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

VBA sort decending not sorting, unpredictable looping

て烟熏妆下的殇ゞ 提交于 2019-12-24 16:18:13
问题 I am running a macro to remove formatting from a workbook, sort column s descending delete rows where values in column s are under 0.501. I received some help to fix part of the code here However, I have found additional problems. The code appears quite unpredictable. Sort descending based on column s does not sort the rows in all of the sheets. if I change Range to .Range the code breaks. Sub sort_delete_500cust() Dim WS_Count As Integer Dim i, K As Integer Dim endrow As Long Dim output_wb

CalledProcessError exit status code 5

爷,独闯天下 提交于 2019-12-24 14:07:12
问题 I have been working with a short python script that executes bash commands. The program worked fine for about a month. Recently, I tried running the script passing it this command: my_launcher.py -c /path/to/config/file.json (BTW, when the command is entered in terminal, I causes no error and runs fine) and I get the following message: RuntimeError: Command '['bash', '-c', 'my_launcher.py -c /path/to/config/file.json']' returns non-zero exit status (code5) After looking on Google, I found

Android Studio - java.lang.NoClassDefFoundError

不羁的心 提交于 2019-12-24 14:04:47
问题 I added the .jar file to the lib folder in the project directory: Next I right clicked on each .jar file and selected "Add as library". Then I added the dependencies to the build.gradle file: apply plugin: 'com.android.application' android { compileSdkVersion 21 buildToolsVersion "21.1.2" defaultConfig { applicationId "com.ryzomarmory.crm.ryzomarmory" minSdkVersion 16 targetSdkVersion 21 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false proguardFiles

C check user input error [duplicate]

浪尽此生 提交于 2019-12-24 12:47:25
问题 This question already has answers here : Why is the gets function so dangerous that it should not be used? (11 answers) Closed 3 years ago . All I am trying to do is ask for a password and print out an error message if the input is longer than 10 characters. It works if the first input is shorter than 10 characters. It just prints out the input and exits the program. If the input is longer than 10 characters the error message prints and it asks for a new password, but if the input is less

Creating executable for Python 2.7, getting RuntimeError: maximum recursion depth

对着背影说爱祢 提交于 2019-12-24 12:47:03
问题 I am running Python 2.7. I downloaded py2exe version 0.6.9 win32 to create an executable out of my .py file. I know it is an older version so I'm not sure if that's what's creating the error. I have gone through the steps: creating a setup.py file: from distutils.core import setup import py2exe setup(console=["MyFileName.py"]) Then running python setup.py py2exe --help from the command window, then python setup.py py2exe However, it turns up a RuntimeError: maximum recursion depth exceeded

Setting Excel FormatConditions Font Color Run-time Error

扶醉桌前 提交于 2019-12-24 10:57:12
问题 I am receiving a run-time error '1004' on the line .Font.color = vbRed when setting conditional formats. The Sub works great on Excel 2011 for Mac, but fails on Windows. I've tried rearranging the code, using RGB(255,0,0) , setting .ColorIndex , as well as recording a macro and using that code. All failed in windows. I'm trying to set the font color to red if the cell begins with "Med". The sub is called from here: Public Const BASE As String = "$D$14" Dim cols As Long Dim rows As Long Dim

Python Matplotlib runtime error upon closing the console

核能气质少年 提交于 2019-12-24 10:56:57
问题 I am trying to create a bar chart on python tkinter with matplotlib.Everything works fine except that when i close the tkinter(console) window, it give me this message. I have already closed my tkinter window before closing my console so i am not sure which process it is referring to 'still running'. When i choose to kill it it give me this error message: It only happen when i have my matplotlib code embedded. When i remove my matplotlib codes from my script, it doesn't give me this message

MPI Error: No output

为君一笑 提交于 2019-12-24 09:58:59
问题 The code below is for using 4 nodes to communicate using MPI. I am able to compile it successfully on the cluster using "mpiicpc". However, the output screen just gives me a warning, ‘Warning: Cant read mpd.hosts for list of hosts start only on current’ and hangs. Could you please suggest what the warning means and also if it is the reason why my code hangs? #include <mpi.h> #include <fstream> using namespace std; #define Cols 96 #define Rows 96 #define beats 1 ofstream fout("Vm0"); ofstream