Remove try catch in light demo because 'stack problem..., cleared' message appears 50/12750/2
Adeline CARNIS [Mon, 30 Sep 2013 11:34:46 +0000 (13:34 +0200)]
Change-Id: I73a55b096b9509a513ea9c03b5b58937134f3f73

scilab/modules/graphics/demos/lighting/rot_light.dem.sce
scilab/modules/graphics/demos/lighting/rot_plot3d.dem.sce

index 74a0274..e986823 100644 (file)
@@ -18,15 +18,12 @@ function demo_rot_light()
     l=light();
     s=gce();
 
-    try
-        for i=0:2000
-            sleep(5);
-            x = 2*cos(i*%pi/180);
-            y = 2*sin(i*%pi/180);
-            z = 2;
-            l.position = [x y z];
-        end
-    catch
+    for i=0:2000
+        sleep(5);
+        x = 2*cos(i*%pi/180);
+        y = 2*sin(i*%pi/180);
+        z = 2;
+        l.position = [x y z];
     end
     // DEMO END
 endfunction
index 160f22d..8e6bf25 100644 (file)
@@ -19,12 +19,9 @@ function demo_rot_light()
     s=gce();
     a=gca();
 
-    try
-        for i=1:360
-            sleep(5);
-            a.rotation_angles = [70 i];
-        end
-    catch
+    for i=1:360
+        sleep(5);
+        a.rotation_angles = [70 i];
     end
     // DEMO END
 endfunction