I'm using Windows Server 2003 and have a scheduled task that fails to complete. The task is set to run a Windows Command Script (.cmd) at 3pm each day. The script runs a program that extracts some data from a SQL Server database and uploads that data to an FTP [...] read more
my webstorm debugger works fine if I simply run, say, my server.js directly in debug mode. However, when I run an NPM script in debug mode (npm start for instance), I get the following exception: Process finished with exit code -1073741510 (0xC000013A: interrupted by Ctrl+C) I use Webstorm WebStorm 2016.1.2 [...] read more
Today, my WebStorm started to behave weird. When I stop it on breakpoint - process falls. It occurs at any breakpoint. I work with nodejs javascript. I tried to record gif, but quality is very bad (sorry for that), however, you can imagine the problem if you look at the [...] read more
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 [...] read more
I'm trying to read the cpuid information with the following cod but it doesn't work. I'm using Visual Studio 2010: #include "stdafx.h" #include <stdio.h> int main() { int a, b; for (a = 0; a < 5; a++) { __asm__("cpuid" :"=a"(b) // EAX into b (output) :"0"(a) // a into [...] read more
I'm working on an application that uses boost::asio to listen on different ports for TCP and UDP packets. I did this by using similar server classes as in the asio tutorial examples and I point them all to a single io_service. So overall my main function (win32 console application) looks [...] read more
I create a brand new project using the Azure Functions tool with V1 of Azure functions: enter image description here [https://i.stack.imgur.com/GQMDz.png] I then hit F5 and get the yellow lightning bolt and then an error message: "An error occurred during the activation of a particular registration. See the inner exception [...] read more
I am just learning python and attempting a very simple string formatting line, but it's not working properly. As you can see from the output below, it is inserting the number in the last of the 3, but the first 2 are just showing the code instead of the number. [...] read more
Below is my code to run on win32. #include "stdafx.h" #include <signal.h> void INThandler( int sig ) { printf( "Ctrl-C pressed\n" ); } int main () { signal( SIGINT, INThandler ); while (1) { } return 0; } The output of the program is as follows after I press ctrl-c [...] read more
Currently it looks very easy to debug Gulp tasks in WebStorm when they are written in JavaScript. You just right click on the gulp task from the Gulp Tasks Window and select debug and voila :). Now with TypeScript used frequently around and after installing https://github.com/TypeStrong/ts-node you can write your [...] read more
I am implementing a program that launches 4 threads. The functions are: void* SOURCE_in(struct SOURCE_1*); void* SOURCE_out(struct SOURCE*); void* SINK_out(struct SINK_1*); void* SINK_in(struct SINK*); The functions allow communication between 4 blocks. The Block 1 communicates with block 2. Block 2 share information with third block. Block 3 communicates information with [...] read more
I'm learning MASM and I can't get this simple code to work. I'm not getting the values I pass into invoke, I don't know what's happening. I've tried push 2, push 2, call pow. Same results. EAX and EDX look like garbage or maybe memory addresses. The thread 0x1544 has [...] read more
I used Entity Framework 6 in my application with database first approach. I added a logging method in the context's constructor : Database.Log = sql=>Debug.WriteLine(sql); It seems that in each instanciation of new context, the structures and datas of the tables are loaded. This caused performance troubles and the load [...] read more
I'm using Win32 with C++ to make an app that can load the contents of files through a dialog with the GetOpenFileName function. Everything works fine, except when I close the main window and the app quits and prints this to the console: The thread 'Win32 Thread' (0xa50) has exited [...] read more
I have a pretty large project that just recently started crashing on exit. I am not the greatest C# coder but everything generally works as intended. In this case however, when I close my console application, it crashes but is not caught by the MSVC Debugger. 1) When I build [...] read more
I'm trying to use the GSL 1.14 for VC2010 considering the build project proposed by Brian Glandman's (http://gladman.plushost.co.uk/oldsite/computing/gnu_scientific_library.php). After building libraries I tried to run a simple example using the function gsl_sf_bessel_J0. See code below: INCLUDE INCLUDE int main(){ double x; double y; do { printf("\nInforme o valor de x: [...] read more
Using VS 2015 and Win Flex , I developed a program which implements lexical, syntactic and semantic analysis according to some grammar written in LEXYY.l file. Win Flex is installed correctly. Here is my main.c file: #define _CRT_SECURE_NO_DEPRECATE #include <stdio.h> #include <stdlib.h> #include <string.h> #include "LEXYY.h" #include "PARSER.h" #include "semantic.h" [...] read more
Using VS 2017 and SFML 2.5.1 I followed the instructions for installation and used the code given in the tutorial here. I get a window with "SFML Works!" but instead of drawing a green circle I only get a white box like this: enter image description here [https://i.stack.imgur.com/feBYi.png] The output [...] read more
Environment: * Ubuntu 16.04 on Windows 10 1709 * Python 3.6 Consider this bash script: #!/usr/bin/env bash ping localhost I start it from Windows command prompt: > bash test.sh When I press Ctrl+C, bash stops and exits cleanly: > bash test.sh PING localhost (127.0.0.1) 56(84) bytes of data. 64 bytes [...] read more
I am running the following program and got errors: First-chance exception at 0x0f32d440 (msvcr100d.dll) in c.exe: 0xC0000005: Access violation reading location 0x00000000. Unhandled exception at 0x772815de in c.exe: 0xC0000005: Access violation reading location 0x00000000. The program '[9048] c.exe: Native' has exited with code -1073741510 (0xc000013a). Here is the code #include [...] read more
Where am I making a mistake?? #include "stdafx.h" #include <iostream> #include <string.h> #include <sstream> using namespace std; string input = ""; string slogovi = ""; int broj = 0; void main() { printf("Please enter a valid name:\n>"); getline(cin, input); int c = input.length(); for (int i = 0; i < [...] read more
I'm trying to schedule an R script to run weekly via Windows Server 2008 task scheduler. Originally I set up the task via taskscheduleR like so: library(taskscheduleR) taskscheduler_create(taskname = "twitter_scrape", rscript = "T:\\HackR\\Folder\\web_sna\\code\\twitter_scheduled.R", startdate = format(Sys.Date(), "%m/%d/%Y"), schedule = "WEEKLY") The task failed with an error code of 0xc000013a. When [...] read more
#include <SFML/Graphics.hpp> int main(){ sf::RenderWindow window(sf::VideoMode(200, 200), "Title"); while (window.isOpen()) { // clear window window.clear(); // Draw here // end the current frame window.display(); } return 0; } Why is it closing after 5 to 10 seconds? When I don't have my cursor inside the window, it won't close. The [...] read more
There are no errors showing for this but for some reason just after I enter the integer from the cin the window closes ignoring my answer, which should determine if it says "No that isn't my fav number" or continue to a function. Here is my code: #include <iostream> using [...] read more
I've been trying to improve my own personal C++ skills lately, so I implemented an Array List as a learning exercise. After I got it working, I started checking for memory leaks, and became very confused by the output. Source on GitHub (main.cpp, ArrayList.cpp, ArrayList.h) I got a lot of [...] read more
I am trying to catch the event closing console window of a console application written in C++. From the other post I made last night and some google, I got down to using BOOL WINAPI ConsoleHandler(DWORD CEvent) { char mesg[128]; switch(CEvent) { case CTRL_C_EVENT: Beep( 750, 300 ); escape = [...] read more
I'm trying to use debugger in webstorm 8. I created an express application and set breakpoint in index.js file. When I start application in debug mode, I see the message in console: "C:\Program Files (x86)\JetBrains\WebStorm 8.0.1\bin\runnerw.exe" "C:\Program Files\nodejs\node.exe" --debug-brk=2610 --nolazy bin\www debugger listening on port 2610 Process finished with exit [...] read more
After compiling OpenCV's source and configuring Windows 7 and VS2010 to link the libraries correctly, I was able to compile the following code: #include <opencv2/highgui/highgui.hpp> #include <iostream> using namespace cv; using namespace std; int main() { Mat im = imread("C:\projects\cvtest3\lena.jpg"); // this *is* the proper path, I'm sure if (im.empty()) [...] read more
I'm having a problem trying to convert from cv::Mat to gpu::Mat. I'm using VS2012 Win7 x64. this is the code: #include "opencv2/imgproc/imgproc.hpp" #include <opencv2/opencv.hpp> #include "opencv2/highgui/highgui.hpp" #include <opencv2\gpu\gpu.hpp> #include "cv.h" #include "cxcore.h" #include <stdarg.h> #include <stdlib.h> #include <stdio.h> #include <iostream> using namespace cv; using namespace cv::gpu; int main () { [...] read more
I get this error over and over again when I run my project. Don't know where is the problem. I know it's about some free memory I used again, or a null pointer or access to a non exist memory but actually I checked all the pointers and they are [...] read more
I have a C# console application as a Scheduled Task on Windows Server 2008 R2. The application is scheduled in Windows Task scheduler to run after every 15 minutes. At the end of the application I have, Logger.Log("Killing app"); Environment.Exit(0); Sometimes(may be once a month), my application do not exit. [...] read more
I'm trying to solve the exercise bellow. I don't get any compiler errors. When I run it though, in the main method only the first Make2 gets called and the program stops working with this error: The program '[4864] Make2Two.vshost.exe' has exited with code -1073741510 (0xc000013a). Could someone help me [...] read more
I am trying to schedule an application to run at login (specifically "TineNvidiaUpdateChecker"). This is an .exe file, which briefly opens a cmd window on execution. I want this window to stay open, so I want to run it through powershell, with the '-NoExit' parameter. I schedule a task at [...] read more
i am using the Loopback4 framework. I try to inject a repository into some model class (documentRepository into userModelClass). I am not sure if it is possible to do something like that. The reason why i want to do this is because in the repository i have a method which [...] read more
Why Deadlock if put sending Terminate message and thread.join() in one loop? In book of The Rust Programming Language 20.3 Graceful Shutdown and Cleanup https://doc.rust-lang.org/book/ch20-03-graceful-shutdown-and-cleanup.html Here is the output for below code that could cause deadlock. > Running target\debug\main.exe > > Worker 0 got a job; running. > > Shutting [...] read more
I have a large C++ program running on Windows 10, that has a main system answering socket requests and 2 threads running monitoring systems via separate instances of a socket client class. At software shutdown (CTRL+C or exit X button), I need to be able to gracefully stop 2 threads, [...] read more
I'm building an application which is composed of many differents tabs. I have created one Form per tab and now just need to be able to switch between them. All those forms are stored inside an array that all the classes can access. When I try switching between tabs, it [...] read more
I have submitted my discussion question response online and queried the instructor who cannot help me because his "compiles fine". I need some help with where to get help with visual studio and learning c++ The textbook we were provided uses "namespace std". We are not allowed to use it. [...] read more
I am trying to use SDL to create a game. It all worked perfectly but it just stopped working. I use SDL_Init to init everything but it just stops. std::cout << "Before INIT" << std::endl; //Start SDL if (SDL_Init(SDL_INIT_EVERYTHING) < 0) { std::cout << "SDL could not initialize." << std::endl; [...] read more
I get this error starting the debug session. I have never used WebStorm before and following the setup from JetBrains "C:\Program Files\JetBrains\WebStorm 2018.2.6\bin\runnerw.exe" "C:\Program Files\nodejs\node.exe" --inspect-brk=51768 L:\react\PropertyFinder\PropertyFinder\index.js Debugger listening on ws://127.0.0.1:51768/b33603e7-c88c-4336-b4d1-6042b064fcb0 For help, see: https://nodejs.org/en/docs/inspector Debugger attached. L:\react\PropertyFinder\PropertyFinder\index.js:1 (function (exports, require, module, __filename, __dirname) { import {AppRegistry} from 'react-native'; ^ [...] read more
OK. So this memory leak occurs randomly. And I tried to reproduce it in a simplified version of my original program. It's a VC++ console application with common header files for MFC. The following is my memManager class, which originally is a image correction class that manages memory and also [...] read more
I am creating a vigenere cipher in c++ and when i run the code it has an error says: (Press Retry to debug the application) ConsoleApplication2.exe has triggered a breakpoint. Debug Assertion Failed! Program: C:\Windows\system32\MSVCP140D.dll File: c:\program files (x86)\microsoft visual studio 14.0\vc\include\xstring Line: 1681 Expression: string subscript out of range [...] read more
I have recently upgraded the node version of my project from 0.12.X to 4.2.4 Now whenever I run the project with debug and have "Break on Exception" (the lightning symbol) turned on. The application simply exits with the message: Process finished with exit code -1073741510 (0xC000013A: interrupted by Ctrl+C) No [...] read more
i trying to run a selenium grid test case using C# . I am using same machine for hub and node. To strat node D:\Selenium>java -jar selenium-server-standalone-2.48.2.jar -role webdriver -hub http://10.74.224.251:4444/grid/register -browser browserName=internet explorer, platform=WINDOWS version=7 -port 5556 -dwebdriver.ie.driver="D:\Selenium\DLL\IED riverServer_Win32_2.45.0\IEDriverServer.exe" and to start hub D:\Selenium\DLL>java -Dwebdriver.ie.driver="D:\Selenium\DLL\IEDriverServer_Win32 _2.45.0\IEDriverServer.exe" -jar selenium-server-standalone-2.48.2.jar -role [...] read more
Why this cause my program to finish with following exit code deque<int> di((istream_iterator<int>(cin)), (istream_iterator<int>())); copy(di.begin(), di.end(), ostream_iterator<int>(cout, " ")); > The thread 0x5d4 has exited with code -1073741749 (0xc000004b). > > The program '[3776] Josuttis.exe' has exited with code -1073741510 > (0xc000013a). EDIT: This error i have during program execution: [...] read more
I am using following C++ code to enter a value of X which is used to print out variable CDF. This C++ code is expected to give very similar value we get from NORMDIST function in excel. However I get following error in debugger with out getting any output in [...] read more
I have a C program that needs some functionallity of a library that is written in C# .NET. After I googled up a way how I could do that didn't took long until I hit another problem. It seems that calling a method/function from that library is not a problem [...] read more
I have a multithreaded application under Windows 7. I need to correctly finish jobs in threads which have an open descriptors, connections and so on when a user presses 'X' in the corner of command line, 'Ctrl+C', shuts down OS and so on. I've set a handler for SetConsoleHandler which [...] read more
I've try to compile this code with Visual Studio 2012 but I get the errors below. How can I fix that? And they are due to what? However the program run fine but in singlethreaded mode. #include <stdio.h> #include <time.h> #include <omp.h> int main() { double start, end; double runTime; [...] read more
I'm building OCR application with Visual Studio 2010, C++, SVM in OpenCV. It's ok when I train SVM with under 181 different labels but fails when over 181 labels. Below is IDE and OpenCV error message and my code. Please help me, thank you so much! IDE error message > [...] read more
I know this question has been asked several times, as follows: (Unbalanced Stack!) But I'm using an open source DLL, LZO 2.0.3, written in ANSI C. Information on the DLL is here: LZO download the source My C# program is a downloader that establishes a TCP socket with a server [...] read more
So, I'm super noob and I'm trying to do something that convert an RGB image to binary image in C/C++, using OpenCV. My first program was this: #include <opencv.hpp> using namespace cv; int main ( int argc, char **argv ) { Mat im_gray = imread("img1.png",CV_LOAD_IMAGE_GRAYSCALE); Mat im_rgb = imread("img.png"); Mat [...] read more
I'm working on a program that reformats CSV files using C#. It imports a CSV and uses certain columns to be represented in a new CSV file. I'm getting a System.IndexOutOfRangeException exception using this code. using System; using System.Collections; using System.Linq; class CSVFiles { static void Main(string[] args) { // [...] read more
Evening everyone. I have a program that is meant to have a ticket price and and have parent and child fundraisers to discount the ticket. The program is simple enough, but I'm also supposed to have data validation that makes sure the user only enters 20, 25, or 30 for [...] read more
I am programming a 3D application in C++ using visual studio 2010, and after testing the code using breakpoints, I have found that the main method isn't being reached. The cmd window is opening, and I believe that the dlls are being loaded, however I am getting the message at [...] read more
I used visual studio 2012 and this is my first time to use that. I started wth NEW→Project-Empty→Project-sourcethenfiles-add→new items-Cpp file and input the following codes: #include <iostream> using namespace std; int main() { int cents; int dollars, quarters, dimes, nickels, pennies; cout << "Enter total cents: "; cin >> cents; [...] read more
I am trying to read a .txt file using c# and displaying its contents but I am getting error as IndexOutOfRangeException with error code as 0xc000013a. Here's my code: static void Main(string[] args) { StreamReader sStreamReader = new StreamReader("d:\\TEST.txt"); while (!sStreamReader.EndOfStream) { string sLine = ""; if (sLine != null) [...] read more
I am currently working on the framework for a simple turn based game. I am trying to call a definition within a class Inside of a separate file from my current one. The Program I am importing the moveset file from is called Pymon_Movesets. I am importing it into the [...] read more
this is the main.cpp file, everything seems to work fine until I hit the "Arr = ship1.retrieve()" function call. #include<iostream> #include<string> #include"ship.h" using namespace std; int main(){ int newarray[5][5] = { 0, 0, 1, 0, 0, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, [...] read more
Hey i'm working on a little game project on pygame, but everytime i try to run my code i get an error when he gets to using my sprite: class Sprite: def _init_(self, xposition, yposition, name): self.x = xposition self.y = yposition self.bitmap = image.load(name) self.bitmap.set_colorkey ((0,0,0)) def set_position(self, xposition, [...] read more
I'm very new to c# and was trying to make a simple program to add 3 numbers, I'm not sure why it is not working here is the code and the error. int Value; int Number; int Thing; Console.WriteLine("Please State the First Number"); Value = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("Please State the Second [...] read more
I stream in a text file, which uses semi colons to separate values. I want to replace the semi colon with a colon, and stream out into a newly made .csv file CURRENTLY, the program runs without an error during compiling, but when i specify an output filename, it creates [...] read more
I need to sort two arrays into one,but 0000000 happens in the middle of output. Whats the problem? Cant find a mistake, its in the bubble sort? Here is the code > 'ConsoleApplication5.vshost.exe' (CLR v4.0.30319: > ConsoleApplication5.vshost.exe): Loaded > 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Data.DataSetExtensions\v4.0_4.0.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll'. > Skipped loading symbols. Module is optimized and the debugger [...] read more
I have some problem building a 8000 rows vector. Each row is a struct including 5 columns. I am not sure what the C++ have no response even error message... it just says "The thread 'Win32 Thread' (0x3b48) has exited with code -1073741510 (0xc000013a). The thread 'Win32 Thread' (0x309c) has [...] read more