Page 1 of 1 1
Topic Options
#165906 - 2006-08-14 02:12 PM Wkix32 crashes when sending large parameterstring to wkix32
Senser Offline
Fresh Scripter
*****

Registered: 2005-05-26
Posts: 32
Loc: The Netherlands
Wkix32 crashes when you pass a large parameter string (> 250 chars) to a script from the commandline.

I.e:

wkix32 myscript.kix $parameter="aaaaaaaaaaaaaaaaa..."

When $parameter is more then about 250 characters long, wkix32 crashes.
I've tested this with 4.51, 4.52 and v4.53 beta 2 on Windows XP SP1 and SP2 and with all wkix32 versions the result is the same.

No problems found with kix32.exe.
_________________________
Kix2Exe - Kixtart Script Packager - Check : http://kix2exe.ramonitor.nl

Top
#165907 - 2006-08-14 06:39 PM Re: Wkix32 crashes when sending large parameterstring to wkix32
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
yep.
254 to be exact.

Top
#165908 - 2006-08-15 05:23 AM Re: Wkix32 crashes when sending large parameterstring to wkix32
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Whis is one short of 255. Smells like an input buffer defined to a max of 255 chars.
_________________________
There are two types of vessels, submarines and targets.

Top
#165909 - 2006-08-15 06:13 AM Re: Wkix32 crashes when sending large parameterstring to wkix32
Gargoyle Offline
MM club member
*****

Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
DOS used to have a command line limit of 256 Characters. I do not know if this is still true or not.
Top
#165910 - 2006-08-15 07:22 AM Re: Wkix32 crashes when sending large parameterstring to wkix32
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
but...
the point is, kix32.exe is a console program.
wkix32.exe ain't.

there is something wrong in it's commandline input routines, which btw are not even ruud's but windows api's take care of those too.

Top
#165911 - 2006-08-15 10:27 AM Re: Wkix32 crashes when sending large parameterstring to wkix32
Ruud van Velsen Moderator Offline
Developer
*****

Registered: 1999-05-06
Posts: 391
Loc: Amsterdam, The Netherlands
Thanks for the report. I will investigate asap.

Ruud

Top
#165912 - 2006-08-17 10:44 AM Re: Wkix32 crashes when sending large parameterstring to wkix32
Ruud van Velsen Moderator Offline
Developer
*****

Registered: 1999-05-06
Posts: 391
Loc: Amsterdam, The Netherlands
In short: cause found and fixed. The fix will be included in the next build of 4.53.

Good catch, thanks!

Ruud

Top
#165913 - 2006-08-17 12:25 PM Re: Wkix32 crashes when sending large parameterstring to wkix32
Senser Offline
Fresh Scripter
*****

Registered: 2005-05-26
Posts: 32
Loc: The Netherlands
Great!
Top
Page 1 of 1 1


Moderator:  ShaneEP, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1429 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.07 seconds in which 0.034 seconds were spent on a total of 12 queries. Zlib compression enabled.