Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Redefine THIS. error
Message
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
01680602
Message ID:
01680793
Views:
58
I have caught this error ( ) in the following code:

In one of the form's INIT method I test if the function dl_errormessage() can be used as follows:
 	LOCAL oError
	TRY 
		dl_ErrorMessage( thisform.inventory_file_biz.error_message_text, "Failed to create BIZ object for table 
                "PARTS", "Class: PARTS_FILE", "Method: INIT", "Place: 001 " )	
	CATCH TO oError
              *-- Log error
		=Error_Lost_Connection( "parts.init()", "Spare Parts Window", "dl_ErrorMessage()", 
                        oError.message ) 
	ENDTRY 
       
       *-- DO NOT OPEN the form
       RETURN .F.
The error log shows two entries, about 3 seconds apart:
27/05/2021 10:19:45 AM parts_File.init(). Failed to call dl_ErrorMessage()
                       Error: Error reading file c:\users\dmitry\appdata\local\temp\wofuncts.fxp. 
27/05/2021 10:19:48 AM parts.init(). Failed to call dl_ErrorMessage()
                       Error: Cannot redefine THIS. 
Why would you think that 3 seconds after the 1st error the second one shows the error "Cannot redefine THIS."?

TIA
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform