Google Answers Logo
View Question
 
Q: Visual Basic - How to debug between Form_Initialise and Form_Load ( No Answer,   0 Comments )
Question  
Subject: Visual Basic - How to debug between Form_Initialise and Form_Load
Category: Computers > Programming
Asked by: oldman-ga
List Price: $15.00
Posted: 30 Aug 2006 14:48 PDT
Expires: 05 Sep 2006 15:31 PDT
Question ID: 760907
Good Day!

Here is a question for those who know VB quite well. When my EXE
(created with VB 6.0 SP5) runs on certain computers, it displays a
"Run-time error 380 Invalid Property Value".

I modified my EXE to write a logfile as the software loads. It shows
that the error happens after Form_Initialise is completed, but before
Form_Load is started.

After Form_Initialise, but before Form_Load, VB loads and initializes
the controls on the form. The Form_Load event is raised when all the
controls on the form were created and initialized. But, that never
happens. One of the controls (components) gets assigned a value that
it cannot digest and that triggers the 380 error.

My question is: tell me how to find out what control and what property
is responsible. The interval I am talking about cannot be watched with
breakpoints. There is no visible code that I can observe.

Is there a method or a tool that would allow me to pinpoint my problem?

Thank you all in advance!
Eugene

Request for Question Clarification by hammer-ga on 30 Aug 2006 17:18 PDT
Oldman-ga,

If you open your VB project in the IDE and start it by pressing F8,
you can then step through your code line by line by pressing F8. Based
on your description, this may or may not reveal anything.

If not, you can make a copy of your project, then you can remove
controls one at a time until the error goes away. Once you know which
control is causing the problem, you can focus on known issues for that
type of control that cause this error. There are a couple of controls
that are prone to this, especially if converted from an older version
of VB.

Does this help?

- Hammer

Clarification of Question by oldman-ga on 31 Aug 2006 08:39 PDT
The problem is that I cannot reproduce the "Run-time error 380 Invalid
Property Value" on any of my computers. I need to find a way to modify
my EXE in such a way that, when I give it to a client who gets this
error, we can find out what control and property is causing that
instead of getting just the error message. Please tell me what kind of
debugging I can incorporate into my EXE.
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy