Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 959
  • Last Modified:

Runtime error 340 Form_Load event

I have a program on my PC written in VB6 (MySQL database) that works when I run it here.  I used INNO SETUP for deployment.  The first form that pops up is a Login Form.  For one of the users, the following error appears after she hits the Login button.

       runtime error '340'
       control array element '1' doesnt exit
       Form = frmMain    Event = Form_Load

All other users can log into the system with no problems.  I uninstalled the program and reinstalled it and now all Userid's work.  Should I be concerned that this might happen again?  How would I best go about debugging issues on a User's system, as I could not recreate the error on my system?
0
inkineu
Asked:
inkineu
1 Solution
 
hiteshgoldeneyeCommented:
the best way i guess is to use error handlers in every sub routine, in the error handler open a text file at a particular location and then log the important parameters and the error message. This will help you in getting the error without the need to recreate it.
0
 
inkineuAuthor Commented:
I do use error handles, ON ERROR GOTO ... , but that would not give me the line where the problem occured.  Is there a way to pickup the line?  My error routines display a message with the Subroutine name, error code and description.  Thanks
0
 
kevinfiggCommented:
When an activex control is regstered by an installer, this is (optionally) applied to all users in the All Users registry hive or local machine. Some installers will register it only to the user who is installing it.  In this case, I would suspect there was an issue with the user's profile.

I wouldn't worry about this too much, it might happen again - but then this is just normal run of the mill
problems installer apps have to deal with.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now