Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Eventtracking during runtime

Status
Not open for further replies.

longda

Programmer
Jul 24, 2001
66
US
Is there any way to use 'set eventtracking' or something like it during runtime to create a very simple log file. I am having some problems using createobject() when instantiating a form. Some of the controls bomb out at the init event which causes an error 'can't instantiate object' and my form never comes up. I am not sure why this happens because it only occurs once in a while not all the time, and I have no idea on what control's init event it is occuring.

Thanks in advance
Dave L.
 
longda

When you compile your exe, set the debug info on. And when the error message pops, agree to record the error in the apperror table. Then go visit the table, to see what VFP says the error is. Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first
 
I have debug info on in the project properties dialog box. When the error happens my on error prg is fired and I never see where I can agree to record the error in the apperror table. Where is this apperror table after the error happens.
Also I am building an app not an exe if this helps.

Thanks
Dave L.
 
longda

I have debug info on in the project properties dialog box. When the error happens my on error prg is fired and I never see where I can agree to record the error in the apperror table. Where is this apperror table after the error happens.
Also I am building an app not an exe if this helps.


It's because you are using your own ON ERROR scheme. Try setting off the see if VFP's will kick in.
Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first
 
I set error on to nothing. Now I get 'Error instantiating the object.' with buttons cancel, ignore, help. I have not received an option to record it. Am I missing any other settings that might cause this. Is there any other way to produce a log file of what is happening with out creating it myself. I only want to know what object init event this is happening on. When using the lineno() and program() as parameters for my on error it only returns the line number and program name of the program that calls the createobject function, not the line number or name of the event that is actually causing the error.

Thanks
Dave L.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top