exit-code

Native exiting with with code: -1073741510 (0xc000013a) while using prime checker function

一笑奈何 提交于 2019-12-10 10:25:18
问题 I have been trying to create my own prime checker function, although strangely when I call isPrime(7) it returns 1, which is good, but when I call isPrime(9) it gives me the following error: 'Mathematics.exe': Loaded 'C:\Documents and Settings\mbryant\My Documents\Visual Studio 2010\Projects\Mathematics\Debug\Mathematics.exe', Symbols loaded. 'Mathematics.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', Cannot find or open the PDB file 'Mathematics.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll'

Return code from shell script run from PuTTY to calling batch file?

为君一笑 提交于 2019-12-10 09:27:31
问题 I would like to ask a question about how to apply PuTTY and control its return values. My setup is like this. There's a xxxxx.bat file which contains PuTTY call with a ssh connection in the likes of: putty.ext ssh 10.10.10.10 -l xxxx -pw yyyy -t -m wintest.txt The file wintest.txt contains: echo "wintest.txt: Before execute..." /home/tede/n55115/PD/winlinux/RUN.lintest.bsh echo "wintest.txt: After execute..." echo $? The file lintest.bsh contains various commands, what interests me is to be

eclipse installed but cannot start java returned exit-code = 1

对着背影说爱祢 提交于 2019-12-09 18:32:07
问题 I recently installed eclipse-dsl-juno-SR1-win32-x86_64 and after extracting the files, as I started running Eclipse it gave me the following error : Java was started but returned exit code=1 (required java version=1.5) I checked the reason for this and also tried reinstalling as well as solutions suggested by other discussion forums, but to no avail. I have installed Eclipse IDE for Java and DSL Developers : eclipse-dsl-juno-SR1-win32-x86_64 under the Eclipse Juno SR1 packages AND JDK 1.7.0

Is it possible to break on thread exit with specific error code?

谁都会走 提交于 2019-12-09 09:33:53
问题 I was wondering if it was possible to configure visual studio 2008 debugger to stop execution when a thread exits with a precise error code (or at least any non-zero value). My app use a tremendous number of threads, so it's impossible to track them all manually. Is there a way to tell VS2008 to break when ANY thread in the program hits "exit(X);" (X being different from 0) and display source ? 回答1: Yes, set a breakpoint in the function _RtlExitUserThread@4 , and add a condition of *(int*)

Jenkins - simply robocopy in Jenkins finishes marks build with failure

核能气质少年 提交于 2019-12-09 08:12:09
问题 I have a simply windows batch command (robocopy) that returns zero errors but is always marked as a failure in Jenkins. I would like to know why? D:\Jenkins\jobs\Jenkins Config Backup\workspace>exit 1 Build step 'Execute Windows batch command' marked build as failure Finished: FAILURE 回答1: robocopy returns a bit map For details see here: http://ss64.com/nt/robocopy-exit.html In summary: All exit codes up to '3' are fine. This is the batch file code I usually use: set SOURCE= ... set

exit fails to set error code

半城伤御伤魂 提交于 2019-12-08 17:30:20
问题 I have a C++ Windows program that fails to set the exit code. The program is very complex and I'm currently unable to reproduce this with a simple test case. I do know that the program calls exit(1) because I have a breakpoint on that line. Immediately after I step over it, the debugger (VS2010) prints The program program.exe has exited with code 0 (0x0). When I run it from the shell, %ERRORLEVEL% is also set to 0. I use subsystem:console and plain old main (no WinMain). This only happens on

Batch run script when closed

﹥>﹥吖頭↗ 提交于 2019-12-08 06:56:26
问题 My question is how would I make a batch script instead of closing when the X in the top right is pressed to execute a file called exit.exe. 回答1: the [X] is "out of reach" for cmd . Only way, I can think of is: create another cmd to watch the presence of the current window: @echo off title WatchMe more +7 %~f0 >t2.bat start "watcher" t2.bat exit /b @echo off :running tasklist /v|find "WatchMe" >nul &&echo waiting || goto finished timeout 1 >nul goto running :finished echo "the process has

Problem with installing Charm-Crypto for Python3

◇◆丶佛笑我妖孽 提交于 2019-12-08 05:02:56
问题 Hello fellow Programmers, currently I am trying to install Charm-Crypto 0.43 on my Ubuntu. Unfortunately nothing seems to work. I tried the linked manual install, as well as pip install charm-crypto I always get this Error log: [...] running build_ext building 'charm.core.math.pairing' extension creating build/temp.linux-x86_64-3.6 creating build/temp.linux-x86_64-3.6/charm creating build/temp.linux-x86_64-3.6/charm/core creating build/temp.linux-x86_64-3.6/charm/core/math creating build/temp

My server exited with code 137

醉酒当歌 提交于 2019-12-07 18:00:16
问题 I wrote a C++ server/client pair using C++11, boost::asio and HDF5. The server was running fine for a some time (2 days), and then it stopped with code 137. Since I executed the server with an infinite loop, it was restarted. Unfortunately, my error logs don't provide sufficient information to understand the problem. So I've been trying to understand what this code means. It seems there's consensus that this means it's an error of 128+9 , with 9 meaning that the program was killed with kill

Cannot launch shell script with arguments using Java ProcessBuilder

家住魔仙堡 提交于 2019-12-07 15:05:11
问题 I am trying to execute a shell script with command line arguments using ProcessBuilder, this shell script inturn calls two other shell scripts that uses this argument. The first shell script runs fine, but when the second one is started it returns exit code 1. ProcessBuilder snippet from Java Program: //scenario - A string that holds a numerical value like 1 or 2 etc String[] command2 = {"/bin/bash", "<path to shell script>/runTemporaryTestSuite.sh", scenario}; ProcessBuilder pb2 = new