Print Page | Close Window

Singleton

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=24615
Printed Date: 01 December 2025 at 11:14am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Singleton
Posted By: erik1
Subject: Singleton
Date 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?



Replies:
Posted By: astoyan
Date Posted: 01 December 2025 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net