Page 1 of 1 1
Topic Options
#79757 - 2003-08-05 09:36 PM Bug in version 4.21
ida-intl Offline
Fresh Scripter

Registered: 2003-06-16
Posts: 12
[moderator lonkero moved to beta from suggestions due to lack of suggestion in topic]

I was piloting version 4.21 on a WIN2K Pro test machine and found that the "USE */ DELETE" command forces a @ERROR 87.

I am currently using version 4.02 in production and the command works fine.

I found a MSKB article 173009 which states that the RegEnumValue() API could cause this if referenced improperly.

see below...

The declaration of RegEnumValue as it currently exists in the API Text Viewer is:
Declare Function RegEnumValue Lib "advapi32.dll" Alias "RegEnumValueA" _
(ByVal hKey As Long, ByVal dwIndex As Long, ByVal lpValueName As _
String, lpcbValueName As Long, lpReserved As Long, lpType As Long, _
lpData As Any, lpcbData As Long) As Long


The fifth parameter, lpReserved, should be defined as ByVal. The correct declaration is:
Declare Function RegEnumValue Lib "advapi32.dll" Alias "RegEnumValueA" _
(ByVal hKey As Long, ByVal dwIndex As Long, ByVal lpValueName As _
String, lpcbValueName As Long, ByVal lpReserved As Long, lpType As _
Long, lpData As Any, lpcbData As Long) As Long

Anyone else experiencing this issue?

Tom

[ 08. August 2003, 00:46: Message edited by: Lonkero ]

Top
#79758 - 2003-08-05 10:20 PM Re: Bug in version 4.21
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
You should type in the command correctly!
Error 87 is ERROR_INVALID_PARAMETER. The correct command would be
code:
use '*' /delete

. Please see the KiXtart Manual for correct syntax.

[ 06. August 2003, 05:16: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.

Top
#79759 - 2003-08-05 10:31 PM Re: Bug in version 4.21
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Please do not report supposed bugs in a current release unless the bug also exists in the current beta. Since 4.22 is in beta, you should be testing and reporting on 4.22 only.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#79760 - 2003-08-05 10:44 PM Re: Bug in version 4.21
ida-intl Offline
Fresh Scripter

Registered: 2003-06-16
Posts: 12
I do have the syntax correct in my script. I just typed it incorrectly in this message.

It doesn't work in 4.21 on win2k pro.

Top
#79761 - 2003-08-06 01:10 AM Re: Bug in version 4.21
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Try it with quotes. There has been some discussion on the need for quotes.

USE "*" /DELETE

In fact, Scriplogic changed their CHM to include the quotes in their example.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#79762 - 2003-08-06 08:44 PM Re: Bug in version 4.21
ida-intl Offline
Fresh Scripter

Registered: 2003-06-16
Posts: 12
Thanks...that did it.

The Kixtart manual shows the command in the REMARKS section with the quotes, but the EXAMPLES section shows it without the quotes. I guess that were I got confused.

Thanks again.

Top
#79763 - 2003-08-07 11:17 AM Re: Bug in version 4.21
Ruud van Velsen Moderator Offline
Developer
*****

Registered: 1999-05-06
Posts: 391
Loc: Amsterdam, The Netherlands
Just to let you know that there is in fact a bug here: "USE * /delete" (without quotes around the *) should have worked.

It will work again in 4.22.

Ruud

Top
#79764 - 2003-08-07 03:06 PM Re: Bug in version 4.21
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Can you please make sure that this is reflected correctly in the KiXtart Manual, too?
_________________________
There are two types of vessels, submarines and targets.

Top
#79765 - 2003-08-08 12:42 AM Re: Bug in version 4.21
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
ruud, it has been that way for a while now.

anyway, I still wonder why it should work.
as, if there is no quotes around it, it's not string but symbol.
if we ever get to the point of having kixtart requiring correct syntax, these problems would not be there.
_________________________
!

download KiXnet

Top
#186752 - 2008-04-05 11:36 PM Re: Bug in version 4.21 [Re: Lonkero]
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Bump
Is this fixed or not?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

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 657 anonymous users online.
Newest Members
M_Moore, BeeEm, min_seow, Audio, Hoschi
17883 Registered Users

Generated in 0.225 seconds in which 0.192 seconds were spent on a total of 13 queries. Zlib compression enabled.