![]() |
Singleton |
Post Reply
|
| Author | |
erik1
Newbie
Joined: 13 January 2022 Status: Offline Points: 8 |
Post Options
Thanks(0)
Quote Reply
Topic: SingletonPosted: 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?
|
|
![]() |
|
astoyan
Admin Group
Joined: 24 August 2013 Status: Offline Points: 325 |
Post Options
Thanks(0)
Quote Reply
Posted: 4 hours 46 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
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |