]> OCCT Git - occt-copy.git/commitdiff
0026232: Multithreaded crash in IntAna_Int3Pln::Perform due to statics
authorabv <abv@opencascade.com>
Tue, 19 May 2015 04:10:35 +0000 (07:10 +0300)
committerabv <abv@opencascade.com>
Fri, 21 Aug 2015 07:59:03 +0000 (10:59 +0300)
"Static" keyword removed from local variable declarations in IntAna_Int3Pln::Perform()

src/IntAna/IntAna_Int3Pln.cxx

index 15da63040f6b5422923119ba2f7b2263a35e3726..dd6693372cfad6cf2e9fa87b2e3bdf29cb5070d6 100644 (file)
@@ -38,8 +38,8 @@ void IntAna_Int3Pln::Perform (const gp_Pln& P1, const gp_Pln& P2,
                              const gp_Pln& P3) {
 
   done=Standard_False;
-  static math_Matrix M(1,3,1,3);
-  static math_Vector V(1,3);
+  math_Matrix M(1,3,1,3);
+  math_Vector V(1,3);
   
   P1.Coefficients(M(1,1),M(1,2),M(1,3),V(1));
   P2.Coefficients(M(2,1),M(2,2),M(2,3),V(2));