Article View: borland.public.cppbuilder.deployment
Article #277Application->Terminate(); Don't stop de application???
From: Halfo
Date: Wed, 17 Nov 2004 02:12
Date: Wed, 17 Nov 2004 02:12
23 lines
1634 bytes
1634 bytes
I got a normal application with a DataModule.
Application->Initialize();
Application->CreateForm(__classid(TmodDB), &modDB);
Application->CreateForm(__classid(TwndMain), &wndMain);
Application->Run();
in the event DataModuleCreate of the DataModule I check the connection
to the DB, if it fails I want to close the program.
I try using:
Application->Terminate();
but the aplication don't stop at this moment an execute the following
code for some time (causing errors).
Do I can't use Terminate() before call Application->Run(); ????
How can i performe this exit?
Thanks
David
Technical Details
Message-ID:
<419ab390$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsgate.cistron.nl!news.cambrium.nl!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!news-hub.cableinet.net!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: f8e54,8dc33e694abddc73,start X-Google-Attributes: gidf8e54,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Wed, 17 Nov 2004 03:12:43 +0100 From: Halfo <david@halfo.jazztel.es> User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.deployment Subject: Application->Terminate(); Don't stop de application??? Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 212.106.240.252 Message-ID: <419ab390$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1100657552 212.106.240.252 (16 Nov 2004 18:12:32 -0700) Lines: 23 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsgate.cistron.nl!news.cambrium.nl!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!news-hub.cableinet.net!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail