Bug 3361 fixed.
Vincent Couvert [Fri, 22 Aug 2008 12:36:59 +0000 (12:36 +0000)]
Figures no more killed at the end of the demo.
Clear functions to be defined to avoid warnings.

scilab/modules/cacsd/demos/flat/car.dem.sce
scilab/modules/cacsd/demos/flat/car.sci
scilab/modules/cacsd/demos/flat/truck.dem.sce
scilab/modules/cacsd/demos/flat/truck.sci

index 4fb9339..55fa01f 100644 (file)
@@ -1,3 +1,6 @@
+// Clear the functions defined in car.sci to avoid warnings
+clear car_solve polyline car_polynomial_curve display_car_trajectory build_car draw_car polyline
+
 exec(get_absolute_file_path("car.dem.sce") + "/car.sci",-1);
 
 initial               =[3;3;0;0];
@@ -6,6 +9,5 @@ my_handle             = scf(100001);
 clf(my_handle,"reset");
 my_handle.pixmap      = "off" ;
 toolbar(my_handle.figure_id,"off");
-display_truck_trajectory(state);
 state=car_solve(initial,final);
 display_car_trajectory(state);
index 5de5137..200fc37 100644 (file)
@@ -107,7 +107,6 @@ function display_car_trajectory(state)
     drawnow()
   end 
   for i=(1:30)+size(state,1),realtime(i),end
-  xdel()
 endfunction
 
 
index d24329c..e514a88 100644 (file)
@@ -1,3 +1,6 @@
+// Clear the functions defined in truck.sci to avoid warnings
+clear truck_solve polyline truck_polynomial_curve cr2Tfjt cr2Tkf cr2Tfk display_truck_trajectory build_truck draw_truck polyline
+
 exec(get_absolute_file_path("truck.dem.sce") + "/truck.sci",-1);
 
 initial   = [-2;3;0.5235988;0;0;1];
index bdb1871..3567115 100644 (file)
@@ -239,7 +239,6 @@ function display_truck_trajectory(state)
     drawnow()
   end 
   for i=(1:30)+size(state,1),realtime(i),end
-  xdel()
 endfunction