debug unload
This commit is contained in:
@@ -12,5 +12,5 @@ void Print::run() {
|
|||||||
std::cout << "Print lib loaded and run!\n";
|
std::cout << "Print lib loaded and run!\n";
|
||||||
app.unload(self);
|
app.unload(self);
|
||||||
//app.end();
|
//app.end();
|
||||||
std::cout << "App::Get() called\n";
|
std::cout << "app.unload() called\n";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -76,9 +76,13 @@ void App::load(std::string lib) {
|
|||||||
|
|
||||||
void App::unload(decltype(Module::self) it) {
|
void App::unload(decltype(Module::self) it) {
|
||||||
void* handle = (*it)->getHandle();
|
void* handle = (*it)->getHandle();
|
||||||
|
std::cout << "retrieved handle\nAttempting to delete module: " << (*it)->getName() << std::endl;
|
||||||
delete *it;
|
delete *it;
|
||||||
|
std::cout << "deleted module\n";
|
||||||
dlclose(handle);
|
dlclose(handle);
|
||||||
|
std::cout << "closed handle\n";
|
||||||
modules.erase(it);
|
modules.erase(it);
|
||||||
|
std::cout << "erased iterator\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
void App::handleArgs(const int& argc, char* argv[]) {
|
void App::handleArgs(const int& argc, char* argv[]) {
|
||||||
|
|||||||
Reference in New Issue
Block a user