I'm writing an application which processes several STEP files. As soon as I try to read them in parallel (i.e. a STEPControl_Reader instance per thread), the application crashes. Digging into the callstack of STEPControl_Reader::ReadFile, I could see the crash occurs inside the "rec_newarg()" function. A quick look at that function showed it makes heavy use of static variables, which likely sounds as the main reason of the crash.
Am I doing something wrong? Is there any way to prevent/solve/workaround this problem? I apologize in case there exists already a similar topic but, at my surprise, I couldn't find any in the forum.