vb4 (16-bits) runtime error '20001'

I have create an application using VB4 (16-bits)and generated a setup files using VB4 (16-bits) application setup wizard and copy those files to a disk.
Then I install that application into another pc and when
I click on AAA.exe, it will pop up a dialog that says,
"runtime error '20001' without any description.
Then I try to click on the AAA.exe again, the same runtime
error code still exist except that it will print out some garbage characters as well.

If I run this application on the development pc, there won't be any runtime error '20001'

Can anyone help me on this.
wsmAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mrmickCommented:
Visual Basic reserves error numbers in the range of 1 - 1000 (but only currently use up to about 750.  VB control errors are 32000+

Error 20001 is a user defined error.  Could be cause by a custom control or your app if you raise any errors.

What's going on in your code when the error occurs?

0
wsmAuthor Commented:
The problem is solved when I change that pc into the
development pc. This runtime error will only occur at the non-development pc.
After tracing each line in the form load using msgbox "test",
the runtime error occur when I tried to assign the DirList.path
During Form_Load, I have assign DirList.path = c:\AAA\test
and this AAA\test directory is already created.
so, what is the problem? This DirList, is it part of the Microsoft Common Dialog (comdlg16.ocx since it is a 16 bit)?
0
mrmickCommented:
Create a new installable program using the application setup wizard and install the program on the new machine.  DirList is not part of the comdlg control.  You most likely missing missing required files.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rantanenCommented:
MS documentation knows three cases of runtime error 20001. Two of them are connected to Access 2 (DB engine version in VB4/16) and one to RAS service on Windows NT 3.x.

One of those concerning Access 2 also involves SQL server (actually accessing SQL server from Access Basic code), so I make a wild guess, that in your case the error code means

JET_errREPSetRepid    -20001  users can't change the rep ID

So this hints that you are replicating a database or your program thinks that you are replicating it (you can never be 100 % sure that the error reported is the actual error) and doing an illegal operation on it.

If it happens to be so that you are trying to use RAS services, then the error code means

RAS EVENT ID: 20001 SYMBOL NAME : RASLOG_CANT_LOAD_NBGATEWAY MESSAGE TEXT: Cannot load the NetBIOS gateway DLL components

So please provide some more info.




0
wsmAuthor Commented:
The application setup files was created using the VB 16 Application Setup Wizard - 16 bit.

I have tried to use InstallShield to create the setup files, but
the same runtime error '20001' still occur.

And this application is not using Access 2 (DB engine version in
VB4/16) or RAS service on Windows NT 3.x.

Any other help/hints will be grateful.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Installation

From novice to tech pro — start learning today.