Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error Log Calling Chain Issues
Message
De
13/06/2002 11:29:07
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, Californie, États-Unis
 
 
À
12/06/2002 10:40:27
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00667383
Message ID:
00667976
Vues:
19
Yep, this is a bug that somehow reared its ugly head at some point last summer. If you change the following code in cErrorMgr.CreateLogEntry(), located in cManager.vcx:

Change from :
DO WHILE !EMPTY(SYS(16,lnCount)) 
	IF SYS(16,lnCount) != 'ON.'
		REPLACE mCallChain WITH mCallChain + SYS(16,lnCount) + ;
		CHR(10) IN ErrorLog
	ELSE
		EXIT
	ENDIF
	lnCount = lnCount + 1
ENDDO

lcAlias = This.ErrorMgrObj.GetAlias() 

This.ErrorMgrObj.New()
Change to:
lcAlias = This.ErrorMgrObj.GetAlias() 
This.ErrorMgrObj.New()

DO WHILE !EMPTY(SYS(16,lnCount)) 
	IF SYS(16,lnCount) != 'ON.'
		REPLACE mCallChain WITH mCallChain + SYS(16,lnCount) + ;
		CHR(10) IN ErrorLog
	ELSE
		EXIT
	ENDIF
	lnCount = lnCount + 1
ENDDO
Essentially, it was adding all the call chain information to the first record in the errorlog table. Don't worry, as part of Kevin's "mea culpa" on this one, he agreed to Riverdance for all of us at Whilfest and DevCon. The critics agree, it's better than Cats... you'll want to see it again and again.

>The error log in my app is not storing the calling chain. This means that I know the error, when it occured, and the user's environment, but I do not know where the error occurred - the most important piece!
>
>Thanks,
>
>David
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform