Skip to content

Commit

Permalink
Make sure that just one instance of controls is created with static l…
Browse files Browse the repository at this point in the history
…ibraries
  • Loading branch information
VeithMetro committed Jan 15, 2025
1 parent 36b0b53 commit f4b8345
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
1 change: 0 additions & 1 deletion Source/Thunder/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ target_link_libraries(${TARGET}
${NAMESPACE}Cryptalgo::${NAMESPACE}Cryptalgo
${NAMESPACE}COM::${NAMESPACE}COM
${NAMESPACE}Messaging::${NAMESPACE}Messaging
${NAMESPACE}Assertion::${NAMESPACE}Assertion
${NAMESPACE}WebSocket::${NAMESPACE}WebSocket
${NAMESPACE}Plugins::${NAMESPACE}Plugins
${NAMESPACE}COMProcess::${NAMESPACE}COMProcess # For COM executable define
Expand Down
4 changes: 3 additions & 1 deletion Source/com/Communicator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -555,13 +555,15 @@ namespace RPC {
if (announceMessage->Response().IsSet() == true) {
string jsonMessagingCategories(announceMessage->Response().MessagingCategories());

#ifdef BUILD_SHARED_LIBS
Assertion::AssertionUnit::Instance();

#if defined(WARNING_REPORTING_ENABLED)
#if defined(WARNING_REPORTING_ENABLED)
string jsonDefaultWarningCategories(announceMessage->Response().WarningReportingCategories());
if(jsonDefaultWarningCategories.empty() == false){
WarningReporting::WarningReportingUnit::Instance().Defaults(jsonDefaultWarningCategories);
}
#endif
#endif
_connectionId = announceMessage->Response().SequenceNumber();

Expand Down
6 changes: 0 additions & 6 deletions Source/com/Communicator.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,6 @@
#include <processcontainers/processcontainers.h>
#endif

// #include <assertion/AssertionUnit.h>

#if defined(WARNING_REPORTING_ENABLED)
#include <warningreporting/WarningReportingUnit.h>
#endif

#include "IteratorType.h"

namespace Thunder {
Expand Down
9 changes: 6 additions & 3 deletions Source/com/Module.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,13 @@

#include <core/core.h>
#include <messaging/messaging.h>
#include <assertion/assertion.h>

#ifdef __CORE_WARNING_REPORTING__
#include <warningreporting/warningreporting.h>
#ifdef BUILD_SHARED_LIBS
#include <assertion/assertion.h>

#ifdef __CORE_WARNING_REPORTING__
#include <warningreporting/warningreporting.h>
#endif
#endif

#if defined(__WINDOWS__) && defined(COM_EXPORTS)
Expand Down

0 comments on commit f4b8345

Please sign in to comment.