>Hi,
>
>What is an example of a "bad" code that would produce error "File is not open"? I get an error report from a customer that shows this error message. The place is Init method of a form. I can't find what would produce this error. And I can't create a "test" line of code that would produce this error message. If I can produce this error maybe it will clue me on what is "wrong" in the Init method.
>I would appreciate any help.
I found another little anomaly in this form. The INIT method of one of the bottons has the following code
this.caption = GetFieldCaption(LOC_MY_FILE)
The LOC_MY_FILE is defined in an include file MyApp.h as following:
#define LOC_MY_FILE 15
But the location of the MyApp.h was wrong. That is if I open the form in the designed and go to Class -> Include File the file MyApp.h was showing in a wrong folder. So I am not sure if during compiling the form if the Define was "found"
Could the above anomaly cause the error File is not open?
"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