Re: [Imtoolkit-users] Lua 5.2 crash
Brought to you by:
scuri
|
From: Milind G. <mil...@gm...> - 2014-12-10 18:39:14
|
Thanks,
I also figured out the reason for the crash was a wrong DLL.
Milind
On Wed, Dec 10, 2014 at 8:31 AM, Antonio Scuri <sc...@te...>
wrote:
> 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
>>
>>
>
>
> ------------------------------------------------------------------------------
> 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
>
>
|