Hello,
I wrote a GUI app in Jython (using Java Swing) which uses database. The application remains connected for its whole run time until the main window is closed (JFrame, using defaultCloseOpe ration = JFrame.EXIT_ON_ CLOSE).
Now, when exiting, I would like to make sure I explicitly close the database connection. Is there any function, like _atexit() in C, where I could place my code?
Thank you very much.
Search Result
Collapse
4 results in 0.0041 seconds.
Keywords
Members
Tags
-
cleanup actions on sys.exit()
-
expected constructor, destructor, or type conversion
hello every1 i need help im stuck at line 34/35/43 whit an error of expected constructor, destructor, or type conversion before "=" token.
line 34 also give 34 expected `,' or `;' before '=' token.
heres the code
Code:#include<conio.h> #include<stdio.h> #include<math.h> #include<stdlib.h> void Do_While(); void While(); void For();
-
Destructor in Singleton class
1. What should be the access specifier for the destructor function in a singleton class?
private, public or protected.
2. How should destroying the object of the singleton be handled? -
prw8864 started a topic What is causing this error: expected constructor, destructor, or type conversiin CWhat is causing this error: expected constructor, destructor, or type conversi
I can not see what is causing this error....
iterator has been defined properly, but the error seems to point to the interator type.
Errors I get with g++ svector.c++ -o svector 2> ./err_txt
gcc version 4.3.2
svector.c++:38: error: expected constructor, destructor, or type conversion before ‘SVector’
svector.c++:53: error: expected constructor, destructor, or type conversion before ‘SVector’...