Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Coffee corner » [SOLVED]Sharing Ptr of object to dll
Re: Sharing Ptr of object to dll [message #52187 is a reply to message #52186] Tue, 06 August 2019 22:24 Go to previous messageGo to previous message
Novo is currently offline  Novo
Messages: 1358
Registered: December 2006
Ultimate Contributor
Xemuth wrote on Tue, 06 August 2019 10:21
Nobody have an idea ?:'(

I just searched Upp source code (Ctrl-Shift-F) for GetIniKey. Smile

String GetIniKey(const char *id, const String& def) {
	ASSERT_(IsMainRunning(), "GetIniKey is allowed only after APP_MAIN has started");
	Mutex::Lock __(sMtx);
	return sIniKeys().Get(id, def);
}
bool  IsMainRunning()
{
	return sMainRunning;
}

sMainRunning is set in CommonInit(). Try to use search Smile
CommonInit() is called by various initialization functions.
In the end it is called by GUI_APP_MAIN/CONSOLE_APP_MAIN.
Because you are not calling GUI_APP_MAIN/CONSOLE_APP_MAIN in your DLL, you are getting this assert.
Try to call CommonInit() manually during initialization of your DLL.

Hope this helps.


Regards,
Novo
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Map implementation
Next Topic: What is the minimum OpenGL version required for GLCtrl?
Goto Forum:
  


Current Time: Thu Apr 25 22:50:48 CEST 2024

Total time taken to generate the page: 0.05777 seconds