Re: [Cppcms-users] Unmount asynchronous application from application pool
Brought to you by:
artyom-beilis
|
From: DieterM75 . <die...@gm...> - 2013-11-18 21:45:36
|
Thanks for your answers, I appreciate it! If you believe it or not, I have read every single page on the wiki and tried to understand the application pool and the service class. The thing is, most of it is written very minimalistic. And I can understand it, time is valuable. I am writing managed code for a living and I also want to learn, try things out and in the end understand the framework, but I sure get stuck without some input. For instance the handler code on page "Reload the application" cannot compile, because no return type is specified. Furthermore I had a look inside the application base class and there is no potential handler method that could be overridden. So how is it supposed to get called? Sincerely On Mon, Nov 18, 2013 at 10:04 PM, Artyom Beilis <art...@ya...> wrote: > > Well thanks for the really helpful reply (not). > > First of all, instead of being sarcastic I'd suggest you to read... manual > pages about signal handling and understand how the code in wiki works and > why, also read about cppcms::service::shutdown, read about the event loop > in the wiki and so on. > > As I told you, your pattern is wrong, you should be based on the pattern > in wiki. > > What is wrong: > > - wrong signal handler > - wrong exception implementation > - wrong assumption about how exceptions are handled... etc > > Instead reinventing the wheel, do as I told you in the previous mails, all > you need to reset the application pointer when the srv.run() exits, before > you restart the service. > > > > > ------------------------------------------------------------------------------ > Shape the Mobile Experience: Free Subscription > Software experts and developers: Be at the forefront of tech innovation. > Intel(R) Software Adrenaline delivers strategic insight and game-changing > conversations that shape the rapidly evolving mobile landscape. Sign up > now. > http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |