vtksys 9.2 Debug vs. Release mode

I’m running a windows 11 environment compiling with VS2019.

I complied 9.2.rc2 in release and in debug mode.

I followed the example: https://kitware.github.io/vtk-examples/site/Cxx/Utilities/FilenameFunctions/

In Debug it runs fine but in Release mode I get an Access violation exception. I saw this issue here:

https://gitlab.kitware.com/vtk/vtk/-/issues/14780 But it looks like it was closed and never resolved. Was this ever fixed or do Windows users have to use the debug version?

I also found a similiar issue with the vtkCommonColor libraries.

Could you please provide the code that crashes? The issue was closed before we migrated to GitLab because it was reported to have been a mixup where some debug libraries were being loaded by the release build (or vice versa).

If you build the debug version of VTK and then build one of the examples please ensure your paths point to the debug version of VTK. Similarly if you build the example in release mode it must use the release dlls of the VTK build. I get caught sometimes in that ifthe example is built in release mode but my system VTK path is pointing to the debug dlls, hence the crash.