PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Robert Rioja on March 30, 2011, 10:47:11 AM

Title: I think I found a bug
Post by: Robert Rioja on March 30, 2011, 10:47:11 AM
I am using FF 3.10 and have found an intermittent problem which is hard to duplicate.  When developing a project with multiple forms, sometimes the following happens.

1. I have two forms called A and B.  The files names are A.frm and B.frm.  FF Explorer shows them as A(A.frm and B(B.frm).

2. I edit the code for form A, so I am in code view, not form view.

3. I then switch to form B, also in code view, and edit it.

4. I press the compile button and I get an error message complaining that I have two forms with the same name.

5. FF Explorer shows only one form A and one form B.

6. Windows Explorer shows one form A and two forms B (I assume with different extensions but extensions are not displayed in my setup of Windows).  One is the latest edited version of form B, and the other is the edited version of form A but with the name B.  Form A still contains the original code, not the edited code.  The edited code for form A is in the "new" form B.

This has happened on two different computers, one with Windows XP and the other with Windows 7.

Any ideas?

Thanks,
Robert

Title: Re: I think I found a bug
Post by: Paul Squires on March 30, 2011, 01:44:52 PM
Hi Robert,

I tried a few different tests but I have not stumbled on a sequence of events that gives me the results you are experiencing. I tried creating the two forms separately, and also creating the "A" form and then doing a "Save as" to save it as "B" and then re-load the "A" form.

Not sure how to proceed on this bug report in order to reproduce it. This may entail you documenting exactly the steps you did when creating the "A" and "B" form?
Title: Re: I think I found a bug
Post by: Robert Rioja on March 31, 2011, 11:27:52 AM
I did not mean for you to spend a lot of time on this.  I have not been able to reproduce the problem at will.  It has happened only two or three times since switching from FF2 to FF3.  It last happened a few days ago and will probably not happen again until .....  who knows.  Very irritating.  I have had two of my associates look into it with no success.  I will let you know if I discover anything.

Robert
Title: Re: I think I found a bug
Post by: Haakon Birkeland on March 31, 2011, 12:13:07 PM
The only time I've seen this behavior is when I wanted to save time. I copied a frm-file, renamed it and imported it without renaming properly the name references in the file.

As long as it doesn't confuse FF to overwrite one with the content of the other, I'd assume a restart would solve the issue if it's somewhat persistent.
Title: Re: I think I found a bug
Post by: Robert Rioja on March 31, 2011, 04:33:16 PM
What Haakon describes is not the problem here.  It seems that when you edit a file, FF makes a temporary file which contains the edited version, but it sometimes names it with the name of another form.  This has been very difficult to reproduce.
Title: Re: I think I found a bug
Post by: Paul Squires on March 31, 2011, 06:05:31 PM
FF does not make a temporary file with the edited version. The edits are held in memory rather than disk file.
Title: Re: I think I found a bug
Post by: Robert Rioja on April 01, 2011, 02:42:18 PM
Well, Paul, then the mystery deepens.  It seems that the new B file is a copy of the edited version of the A form, while the A form still contains the unedited version of A.  It's as if FF responds to the compile request by saving the new A into a temporary file called B.  I cannot yet explain what happens.

Robert
Title: Re: I think I found a bug
Post by: Paul Squires on April 02, 2011, 12:08:26 AM
It would seem that at some point while editing, the name of disk file that FF would save to gets changed. (not sure how that would happen). Then, when you hit save, FF outputs the code to that file.

The question remains, what happens inside FF that causes the name to get changed during editing......not really sure at this point.

Title: Re: I think I found a bug
Post by: Klaas Holland on April 02, 2011, 03:05:30 PM
I had a similar experience when I copied a Form from another Program(ProjectA).
When I changed the Form in the current Program(ProjectB) nothing changed.
So I wondered what did happen and I found out that the Form I had copied from 
Program(ProjectA) had changed and Program(ProjectA) did not work anymore.
The link to the Program(ProjectA) stays intact someway.

I thought I could save some time, but it did cost me a lot of time.
The difficulty is the copying of a Form.
Don't because you run into a lot of problems.