Exception on G4UnitsCategory

Hello!
I am unable to run the example, after some investigaion i’ve found that there is a problem with G4UnitsCategory, it throws an exception in its constructor, despite i can create a G4String in my code. It seems it is similar to the Problem with G4String, but it was closed.

Here the code

        G4String testCategory = G4String("gray"); //works fine
        G4String testStr = G4String(testCategory); //works fine
        new G4UnitsCategory(testCategory); //throws an exception

The exception is
msvcp140.dll!std::bad_array_new_length::`scalar deleting destructor’(unsigned int)

Geant4 Version: 11.1.1
Operating System: Windows 10 Pro 64 bit
Compiler/Version: Microsoft Visual Studio Community 2019
Version 16.11.26
Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30148 for x86

Regards,
Vasiliy

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.