PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: John Montenigro on December 04, 2009, 10:58:43 PM

Title: very odd...
Post by: John Montenigro on December 04, 2009, 10:58:43 PM
Project with 11 forms and modules, compiled fine many times over several days.
Normally when I open FF3, I select the project from the Recent list and click OK.

A little while ago, I opened FF3 and double clicked the project. Not sure if there's a direct relation, but this time the project wouldn't compile.

Error message indicated duplicate definition of some kind.
I found this in the code of the form I had been editing:
   fastFile
That's not anything I created!

Somewhere in here, I turned off the "delete GENERATED_" option.

Also noticed an error on a function named 'fseek' which isn't mine, and I don't call anywhere...
Found two declarations, one for 'FSeek' and the other for 'FSeek&' in one of the GENERATED_ files, and saw a function in another file along with a bunch of places it would be called from. 

Tried commenting out 'fastFile', but compile failed.

Deleted 'fastFile' and compile succeeded!

Checked the GENERATED_ files (actually ALL files in the whole folder branch!), and nothing contains either 'fastFile', 'FSeek', nor 'FSeek&'...

???

I won't venture any guesses... but I will add to these notes if I find anything more...

-John

ADDED:
Just remembered that last time I used FF3 before this problem, I had added my first User Tools.
Related? I have no idea...

Title: Re: very odd...
Post by: Martin Francom on December 05, 2009, 01:26:42 PM
John,
   Those FastFind and FSeek are functions in a library that I posted. Did you somehow click on the functions library and add it to your code?
Title: Re: very odd...
Post by: John Montenigro on December 05, 2009, 05:15:08 PM
I do have your fastFile.inc in my Function Library, but I haven't experimented with it's routines yet, and certainly not in this particular project!

Besides, I don't know how to insert code from the Function Library yet; I haven't tried it. (I've installed code into the Function Library and browsed it, but I've only been editing existing code, not creating new...)

Maybe I hit some key combination that selected it? I can't see how, as fastFile.inc isn't the first or last entry in the list... it would have had to be some very strange keystrokes...  (Maybe the cat pawed my keyboard? No, wait! I don't have a cat!)
 
...

OK, so I've poked around in Function Library and noticed that if I double-click on the name of the .INC in the treeview, rather than opening the code panel, I see that FF has pasted that name in my code! Wow, so that's how it works!

So, Marty, I'd say you're right! I probably double-clicked on the fastFile name, especially seeing that the capitalization was the same (and not how I'd have typed it).

But what about fseek? How would I have got those two DIFFERENT declarations?

-John