[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: tasklibinit error
- From: Daniel Quintela <danielq@...>
- Date: Wed, 05 May 2004 10:19:14 -0300
Thanks Vadim... you are right.
I developed this library one year ago for a Lua 4.0 server project, then, I
ported to 5.0.
When I took out some proprietary code ( small surgery) from the 5.0 version,
I changed the calloc in tasklibinit by malloc ( ??????... drunk I suppose).
I inserted your patch in the code.
Now, I checking all the code because the *ix port doesn't work after
"surgery", before moving to the web server.
About the wish list: by the moment, feel free to send your comments to this
mail account or luatask@soongsoft.com or dq@soongsoft.com
Finally : killing threads ?... mmmm ... let me see...
Cheers,
Daniel
----- Original Message -----
From: "Vadim Shevchenko" <shevadim@mail.ru>
To: <danielq@advancedsl.com.ar>
Sent: Wednesday, May 05, 2004 4:41 AM
Subject: Re: LuaTask examples missing
>
> Hi Daniel.
> Playing with your test script (WinXP and VC.NET) I found some
> problems in you code.
> The application with your library was constantly crashing until
> I added some more initialization code to the
> 'static void int_tasklibinit(lua_State *L)' function.
> It appears that some fields of the main task record were not
> initialized properly. Therefore I added three more lines of
> initialization:
> aTask[0].id = NULL;
> aTask[0].fname = "main script";
> aTask[0].msgcount = 0;
> Generally I like your library and probably will use it.
> As far as I can foresee I will also need a possibility of
> force unloading of tasks so I would add one more function
> as
> task.kill(id)
> So if you keep some wishlist... (;
>
> I appreciate your work.
> Best regards.
> Vadim.
>