Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions src/class_loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,11 @@ int ClassLoader::unloadLibraryInternal(bool lock_plugin_ref_count)
}

if (plugin_ref_count_ > 0) {
CONSOLE_BRIDGE_logWarn("%s",
"class_loader.ClassLoader: "
"SEVERE WARNING!!! Attempting to unload library while objects created by this loader "
"exist in the heap! "
"You should delete your objects before attempting to unload the library or "
"destroying the ClassLoader. The library will NOT be unloaded.");
CONSOLE_BRIDGE_logWarn("class_loader.ClassLoader: SEVERE WARNING!!!\n"
"Attempting to unload %s\n"
"while objects created by this library still exist in the heap!\n"
"You should delete your objects before destroying the ClassLoader. "
"The library will NOT be unloaded.", library_path_.c_str());
} else {
load_ref_count_ = load_ref_count_ - 1;
if (0 == load_ref_count_) {
Expand Down