1 // =============================================================================
2 // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 // Copyright (C) 2008-2008 - INRIA - Serge Steer
5 // This file is distributed under the same license as the Scilab package.
6 // =============================================================================
10 // <-- TEST WITH GRAPHIC -->
12 // <-- Non-regression test for bug 3250 -->
14 // <-- Bugzilla URL -->
15 // http://bugzilla.scilab.org/show_bug.cgi?id=3250
17 // <-- Short Description -->
18 // Creates more 40 graphic windows crashs scilab.
20 // first check that here is no memory leaks when opening windows
22 freeMemInit = getmemory();
24 // create several windows and destroy them
26 // perform a plot and then destroy the window
28 // create a window and instantly destroy it
33 freeMemEnd = getmemory();
35 // There should not be any memory difference, since we will have the same number of opened window. However we toterate a difference of 10Mb
36 if ((freeMemInit - freeMemEnd) > 1.0e5) then pause; end
38 // second test. Open a lot of window. Scilab should provide an error but not crash.
41 execstr("scf()","errcatch");