Re: [Imtoolkit-users] Lua 5.2 crash
Brought to you by:
scuri
From: Antonio S. <sc...@te...> - 2014-12-10 16:31:59
|
No, you don't have to do anything special. If you want to abort the script in the no arguments situation just do: else error("No arguments given") end And Lua will notify the user that there is an error an abort the script. Best, On Sat, Dec 6, 2014 at 9:50 PM, Milind Gupta <mil...@gm...> wrote: > Hi, > I had a program which is something like this: > > require("imlua") > > args = table.pack(...) > if args[1] then > -- Do something here > else > print("No arguments given") > end > > But if I run this script using lua 5.2 and give no arguments instead of > just ending it causes Lua to crash after printing 'No arguments given' > > I am using im.dll and imlua52.dll in the local directory which it uses. > These are from the iup 3.12 binaries. > > Do I need to do something before ending the Lua script to cause im to exit > properly? > > Thanks, > Milind > > > ------------------------------------------------------------------------------ > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server > from Actuate! Instantly Supercharge Your Business Reports and Dashboards > with Interactivity, Sharing, Native Excel Exports, App Integration & more > Get technology previously reserved for billion-dollar corporations, FREE > > http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk > _______________________________________________ > Imtoolkit-users mailing list > Imt...@li... > https://lists.sourceforge.net/lists/listinfo/imtoolkit-users > > |