only depending on vtk, no code to call vtk,crash when close

A mfc application use one dll, the dll depend vtk。Free library when close the app, crash in the vtk code “ delete key;“

void vtkCommonInformationKeyManager::ClassFinalize()
{

delete key;


}

how to reslove the issue, thanks for reply

Hello,

It can indeed be some unchecked delete that went unnoticed until someone just tried to load the library without actually using it like you. Perhaps you could report the bug here: https://gitlab.kitware.com/vtk/vtk/-/issues . Other than that, only taking a look at your code.

best,

PC