Subject | RE: [firebird-support] Command line options |
---|---|
Author | Richard Pendered |
Post date | 2003-10-20T08:20:57Z |
Sounds like you need to use the embeded version of FB whcih starts with the
app and stops with the app automatically. The only down side is that it is
limited to local connections (which should be fine).
-----Original Message-----
From: Klement Guenther - Munich-MR [mailto:gklement@...]
Sent: 20 October 2003 07:25
To: firebird-support@yahoogroups.com
Subject: AW: [firebird-support] Command line options
There seems to be a need for an autostop option in fbserver, Isn't it?
void db_test_stop_local_server(char* user, char* passwd)
{
HWND hWnd = NULL;
disconnect();
// check if there are other connections via isc_info_svc_svr_db_info
if (db_cnt_active_attachments(user, passwd) == 0 )
{
hWnd = FindWindow(szClassName, APP_NAME);
if (hWnd) {
PostMessage(hWnd, WM_CLOSE, 0, 0);
}
}
Regards
Guenther
To unsubscribe from this group, send an email to:
firebird-support-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
[Non-text portions of this message have been removed]
app and stops with the app automatically. The only down side is that it is
limited to local connections (which should be fine).
-----Original Message-----
From: Klement Guenther - Munich-MR [mailto:gklement@...]
Sent: 20 October 2003 07:25
To: firebird-support@yahoogroups.com
Subject: AW: [firebird-support] Command line options
> Actually what my requirement is that I want to start fbserverthe fbserver should have an option to handle the shutdown well.
> whenever my
> client application starts and stop it when the user quits the client
> application. It should be very much transparent to the
> client. Therefore,
There seems to be a need for an autostop option in fbserver, Isn't it?
> //If we started the process, lets attempt to terminate itThis might be slightly better, but my leave the fbserver running.
> as well....
> if( s_pi.hProcess != NULL && s_pi.hThread != NULL )
> {
> TerminateProcess( s_pi.hProcess, 0 );
> CloseHandle( s_pi.hThread );
> CloseHandle( s_pi.hProcess );
> }
> }
void db_test_stop_local_server(char* user, char* passwd)
{
HWND hWnd = NULL;
disconnect();
// check if there are other connections via isc_info_svc_svr_db_info
if (db_cnt_active_attachments(user, passwd) == 0 )
{
hWnd = FindWindow(szClassName, APP_NAME);
if (hWnd) {
PostMessage(hWnd, WM_CLOSE, 0, 0);
}
}
Regards
Guenther
To unsubscribe from this group, send an email to:
firebird-support-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
[Non-text portions of this message have been removed]