You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// AW Jan 2025: Replaced static instance with dynamically allocated once since this static resource triggers error code C0020001 to be returned
90
+
// when the host process exits, due to C's atexit() disposal of managed resources after CLR shutdown. Results in https://github.com/xBimTeam/XbimGeometry/issues/438
91
+
// See https://learn.microsoft.com/en-us/archive/blogs/cbrumme/error-c0020001
92
+
// There may be better workarounds than this, but given future v6 GE integrates OCC dynamically and don't have the issue a tactical fix will have to do
93
+
// This is likely to mean OutOfMemory conditions may not raise an error correctly, at the expense of the majority of cases having a clean exit code.
94
+
//
89
95
// global instance must be allocated at load-time
90
-
staticHandle(Standard_OutOfMemory) anOutOfMemInstance = new Standard_OutOfMemory;
96
+
//static Handle(Standard_OutOfMemory) anOutOfMemInstance = new Standard_OutOfMemory;
0 commit comments