Search found 5 matches

Go to advanced search

by Edsoon
31 Mar 2013, 20:24
Forum: Support
Topic: Application::run()
Replies: 7
Views: 1959

Re: Application::run()

uninitialize() is called only if initialize() call was completed. Yes, the same behavior have classes in c++ (destructor called only if constructor completed). But if constructor is not completed compiler destroys all objects which created in constructor. In your case, the compiler does not "d...
by Edsoon
31 Mar 2013, 15:39
Forum: Support
Topic: Application::run()
Replies: 7
Views: 1959

Re: Application::run()

This was fixed for 1.5.2 release Now, as i understand, function Application::run() can throw exception in calling function `main`. It's not good. One of the benefits of using a poco framework is that the `main` function only creates an object and calling method `run` : int main () { Object obj; ret...
by Edsoon
26 Mar 2013, 19:36
Forum: Support
Topic: Application::run()
Replies: 7
Views: 1959

Application::run()

/// Runs the application by performing additional initializations /// and calling the main() method. /// /// First calls initialize(), then calls main(), and /// finally calls uninitialize(). The latter will be called /// even if main() throws an exception. If initialize() throws /// an exception, m...
by Edsoon
04 Oct 2012, 19:42
Forum: Support
Topic: How can I receive path to default config in Poco::Applica..
Replies: 0
Views: 750

How can I receive path to default config in Poco::Applica..

How can I receive path to default config in Poco::Application ?

Function loadConfiguration() initializes variable "default config" in Poco::Application. How can i receive path to this default config in string form ?

Thx.
by Edsoon
19 Jul 2012, 23:08
Forum: Support
Topic: Poco::Application
Replies: 1
Views: 784

Poco::Application

ServerApplication inherited from Application. Application has method const char* name () const : const char* Application::name() const { return "Application"; } Why this method returns constant "Application" ? I thought that, this function must return the name of my application w...

Go to advanced search

cron