-
Mariusz
delphi service termination program-termination
I use a service application I created in Delphi. My problem is that it is sometimes terminated by the operating system and I don’t know why this happens.When I go the the system events, I can find a piece of information like this one:Event ID: 7034, The […] service terminated unexpectedly. It has done this […] time(s).I know you can’t give me an answer why this happens, but could you please give me a clue what to pay attention to to find the reason of that behaviour? For instance what kind o
-
CyberShadow
c++ access-violation termination
I’m getting a weird access violation at the end of my main whose cause I’m having some difficulties finding.When shutting down my application I get an access violation in the following:xdebug// TEMPLATE FUNCTION _DebugHeapDelete template<class _Ty>void __CLRCALL_OR_CDECL _DebugHeapDelete(_Ty *_Ptr){ // delete from the debug CRT heap even if operator delete existsif (_Ptr != 0){ // worth deleting_Ptr->~_Ty();// delete as _NORMAL_BLOCK, not _CRT_BLOCK, since we might have// facets all
-
iWasRobbed
-
Brann
.net termination
Right now, when the user want to exit my application, I do the few things I have to (ie disconnecting from the server, saving the user data…) and then I do the following :Exit all my mainloops using booleans abort the threads still running (typically, my server polling thread) kindly call Application.Exit();This takes a few seconds to exit, and serves no real purpose (everything is already saved on the server, so I don’t really care what happens there)If I use this instead, I got instant term
-
Aug
resistors filter termination lc
NOTICE: I have added another question here that a solution for each one may help for solving the other one.Please look at Fig-1 below. It is a common usage of termination resistors. R1 , R2 work for impedance matching and R2 also reduces the return signals ( specially we have them when Q>> 1/?2).Firstly, input resistors (R1) are based on line driving. What about the PCB ? in PCB we have not coaxial lines . Should we need them ?Second question is my specific problem: my filter receives the sig
-
pradipta
c linux crash termination
How i can determine the running program is crashed or terminated successfully?I run the program with system(‘exe’), and i have the source code of ‘exe’ in C?I prefer a solution like adding some code to ‘exe’s code. like atexit(someFunction) – but atexit is not working on exceptions-.I’m using Linux.
-
wonderer
c windows process termination
I have a program that has to perform certain tasks before it finishes. The problem is that sometimes the program crashes with an exception (like database cannot be reached, etc). Now, is there any way to detect an abnormal termination and execute some code before it dies?Thanks.code is appreciated.
-
Qwertie
.net compact-framework process windows-ce termination
I have a .NET Compact Framework app that can runs on three windows machines (Desktop windows and two WinCE machines) and on the WinCE devices, the process never terminates on exit, even if I call Application.Exit(). Besides .NET, it uses one COM component (which does everything on the UI thread). If I break into the debugger after exitting, Visual Studio shows only one thread and a completely blank call stack.What could possibly cause this?Update: My process is terminating on the desktop but not
-
Mark
c# multithreading termination
What is the best way to finish a multi-threaded application in a clean way? I am starting several socket connections from the main thread in seperate sockets and wait until the end of my business day in the main thread and use currently System.Environment.Exit(0) to terminate it. This leads to an unhandled exception in one of the childs. Should I stop the threads from the list? I have been reluctant to implement any real stopping in the childs yet, thus I am wondering about the best practice. Th
-
Ferruccio
c++ windows process termination
I have the following problem: I have an application (server that never ends) written in C++ running as a service containing inside the main thread also 3 threads (mainly doing IO).In the main loop I CATCH all possible exceptions.The process terminated and nothing was printed either by the main loop or by the threads themselves. I saw in the event log that the process stopped with code 1000.Does Windows creates Core files like in unix ? If from the event log I get a memory address, is there any w
-
Paranaix
c++ hook exit shutdown termination
is there some way to run code on termination, no matter what kind termination (abnormal,normal,uncaught exception etc.)? I know its actually possible in Java, but is it even possible in C++? Im assuming a windows environment.
-
Paras Joshi
iphone objective-c termination sigabrt
I have just finished one of my apps when I got this message. I cannot for the life of me work out what is wrong.(gdb) continue 2010-02-26 14:05:51.443 BrainTester[2638:207] *** Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘-[UIViewController _loadViewFromNibNamed:bundle:] was unable to load a nib named “SplitSecondViewController”‘ 2010-02-26 14:05:51.452 BrainTester[2638:207] Stack: (861696817,860329709,861252493,861252395,835170725,835170141,835074651,13515,83
-
MrBrody
c string format fgets termination
I’ve seen several usage of fgets (for example, here) that go like this:char buff[7]=””;(…)fgets(buff, sizeof(buff), stdin);The interest being that, if I supply a long input like “aaaaaaaaaaa”, fgets will truncate it to “aaaaaa” here, because the 7th character will be used to store ‘\0′.However, when doing this:int i=0; for (i=0;i<7;i++) {buff[i]=’a’; } printf(“%s\n”,buff);I will always get 7 ‘a’s, and the program will not crash. But if I try to write 8 ‘a’s, it will. As I saw it later, the
-
clanmjc
c++ static local termination destruction
Help me understand this… see bold. From the Standard 3.6.3 Termination (2)2 If a function contains a block-scope object of static or threadstorage duration that has been destroyed and the function is calledduring the destruction of an object with static or thread storageduration, the program has unde?ned behavior if the ?ow of controlpasses through the de?nition of the previously destroyed blockscopeobject. Likewise, the behavior is unde?ned if the block-scope objectis used indirectly (i.e.,
-
Graham Borland
python termination
I am aware of the die() command in PHP which stops a script early, how can I do this in Python?
-
Saleh Feek
java swing sockets termination windowlistener
I have a simple program for server/client communication using sockets. The server class contains run() method, this method has infinite loop to wait for socket acceptance.Any way, I wrote a code in the constructor to do termination for processing on close, this.addWindowListener(new java.awt.event.WindowAdapter() {@Overridepublic void windowClosing(java.awt.event.WindowEvent windowEvent) {System.out.println(“Close operation server done”);toClient.println(“Bye”);closeStreams();socket = null;serve
-
J_mie6
java multithreading sqlite termination
Sorry about the title I can’t really figure how to put the question into a title, if anybody can put that better please correct it!So anyway, in my program I have 2 threads, one is the main program and runs the GUI and everything to do with the user, when it is created it creates a thread which only serves to check a website to see if any updates are available to the SQLite database that the program uses, if there is it pulls the information out in a JSON and must then update the database with a
-
leppie
c# .net termination
We have a C# application that hooks up to AppDomain.UnhandlerExceptions and listens to any unhandled exceptions in the application. Once there is a unhandled exception, it shows an error message to the user and kills the application via a call to Environment.FailFast.The issue is that on some machine this causes a “Unknown Hard Error” message to be shown to the user and the application does not exit till we click “Ok”.The OS is Windows 7 x64 with .NET 4 application.