]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix for the IPAL21919: WinTC5.1.4: message about lack of memory, creating series...
authorrnv <rnv@opencascade.com>
Thu, 23 Sep 2010 10:10:56 +0000 (10:10 +0000)
committerrnv <rnv@opencascade.com>
Thu, 23 Sep 2010 10:10:56 +0000 (10:10 +0000)
src/VISUGUI/VisuGUI_Prs3dTools.h
src/VISU_I/VISU_ColoredPrs3dCache_i.cc

index e1028449e6ed78d46a96dea42873bf61ab5e689e..bd7f27e29acb579e5bcf941f2df1c322770b2574 100644 (file)
@@ -147,7 +147,7 @@ namespace VISU
         if( anEnlargeType == VISU::ColoredPrs3dCache::IMPOSSIBLE )
         {
           size_t aMb = 1024 * 1024;
-          double aFreeMemory = double(VISU_PipeLine::GetAvailableMemory(8192*aMb)) / double(aMb);
+          double aFreeMemory = double(VISU_PipeLine::GetAvailableMemory(8192*(double)aMb)) / double(aMb);
 
           CORBA::Float aNecessaryMemory = aRequiredMemory - aFreeMemory - anUsedMemory;
           SUIT_MessageBox::warning(GetDesktop(theModule),
index 0dcddc755b5a94655b99a913a80c2fdaf88b70da..82ae9dfd28b4193c0195e70e2f73affacd220d11 100644 (file)
@@ -356,7 +356,7 @@ VISU::ColoredPrs3dCache_i
       theRequiredMemory = int( aMemoryUsed + aMemoryNeeded ) + 1;
 
       size_t aMb = 1024 * 1024;
-      double aFreeMemory = double(VISU_PipeLine::GetAvailableMemory(8192*aMb)) / double(aMb);
+      double aFreeMemory = double(VISU_PipeLine::GetAvailableMemory(8192*(double)aMb)) / double(aMb);
       anEnlargeType = aMemoryNeeded < aFreeMemory ?
        VISU::ColoredPrs3dCache::ENLARGE : VISU::ColoredPrs3dCache::IMPOSSIBLE;
     }
@@ -460,7 +460,7 @@ VISU::ColoredPrs3dCache_i
     return;
 
   size_t aMb = 1024 * 1024;
-  double aFreeMemory = double(VISU_PipeLine::GetAvailableMemory(8192*aMb)) / double(aMb);
+  double aFreeMemory = double(VISU_PipeLine::GetAvailableMemory(8192*(double)aMb)) / double(aMb);
   CORBA::Float aMemoryUsed = GetDeviceMemorySize();
   CORBA::Float aMemoryNeeded = theMemorySize - aMemoryUsed;
   if( aMemoryNeeded > aFreeMemory )