Contents Previous Next Subchapters

Executing Large Programs Using O-Matrix Light
Syntax lightexe(filefun)
lightexe
See Also light restrictions , load and save

Description
O-Matrix Light has restrictions that make it impossible to run large programs.

Example
Suppose that in an O-Matrix Developer version you execute the commands
     clear
     large = novalue
     function example() begin
          global large
          large = fill(0, 1, 100000)
     end
     save large.omx
Then in O-Matrix Light you can execute the function example as follows
     file = "large.omx"
     fun  = "example"
     lightexe(file, fun)
Then at the Command line you enter
     coldim(large)
O-Matrix will respond
     100000
Note that this is more than the number of elements allowed in the normal mode for O-Matrix Light.

All pending files on the input stack are removed when light execution mode is entered. That is all commands that follow your call to lightexe are not executed. For example, if the file temp.oms contains the commands
     file = "c:\omwin\large.omx"
     fun  = "example"
     lightexe(file, fun)
     print "lightexe done"
the print command will not be executed.

Restrictions When Using the lightexe Command
Once you execute this command, you will no longer be able to include or execfile any files. This restriction also applies to automatically generated includes. In addition, you will not be able to use the omlink function.

If you are not running O-Matrix Light , you can remove the restriction on including files by calling lightexe with no arguments; i.e.,
     lightexe

Windows and Dialogs
When you execute the lightexe command, all of the windows, dialogs, and toolbar are set to their initial state; i.e., the dialogs are dismissed, the default windows are visible and empty, and the toolbar is enabled.