Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Singleton
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Singleton

 Post Reply Post Reply
Author
Message
erik1 View Drop Down
Newbie
Newbie


Joined: 13 January 2022
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote erik1 Quote  Post ReplyReply Direct Link To This Post Topic: Singleton
    Posted: 27 November 2025 at 6:42am
HEllo,
we had Toolkit 22 version. Now we want to update to 24. But seems there was done major development from your side, which is making it hard.
WOrst problem is that, if we want to start different exe from main application ( main app is derived from CXTPWinApp) it doesnt want to start. Its just says 
The main application object has not been initialized yet or has been "
"destroyed already. A common cause of this condition is that the main "
"application class is not derived from CXTPWinApp or XTPInitialize has "
"not been called instead. Refer to CXTPWinApp and XTPInitialize "
"documentation for more details. The application will abort now."
And then it shout downd that exe.
THese other exes are probably not derived from CXTPWinApp, but why shoud they need to be forced to be derived from that? In 22 it workded fine.
Whats are my options?
Back to Top
astoyan View Drop Down
Admin Group
Admin Group
Avatar

Joined: 24 August 2013
Status: Offline
Points: 325
Post Options Post Options   Thanks (0) Thanks(0)   Quote astoyan Quote  Post ReplyReply Direct Link To This Post Posted: 3 hours 42 minutes ago at 8:32am
Hello,

Introducing CXTPWinApp has helped to address a number of initialization issues as it provides ToolkitPro with a single resource initialization point before any other application specific resources are initialized. In its turn this also allowed to have a controlled centralized resource cleanup after all application specific resources are released. So, yes, it is now required to have every application or module to use CXTPWinApp as a base class for the main application class. And it is not enough to have only the main application to use CXTPWinApp. It is the only option to address it.

Thank you.
Regards,
  Alexander
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.078 seconds.