include files observation and question

new topic     » topic index » view thread      » older message » newer message

Euphoria 4.00.05 on Windows 7 pro:
I program in chunks - modules - whatever. This is for convenience and to lower confusion. Nearly everything is done either by a procedure or a function. As procedures are developed and tested they go into a file. Things being worked on are in another file. There may be a file devoted to gui parts and one to service routines. There is one main file with all the "up top" stuff that includes globals and other definitions. These files are tied together with includes, namespaces, etc so that I only run the file called "main" and everything else tags along. This usually works great; however, I have noticed that as the number of lines of code grows the behavior becomes flaky. Things that once worked fine now have problems that cannot be explained, by me at least. Example: I am working on a data manipulation program that deals with financial data, orders, etc. It has a gui interface for the user. It's not big - about 1500 lines of code with a half dozen windows and, say, 300 controls. It uses the Euphoria database system and numerous map structures to hold the data while it is being processed. It uses win32 gui on Windows 7 operating system. Everything goes through the euphoria interpreter OK. After about 1200 lines of code some of the gui controls that had been working OK stopped working. I chased this for quite a while. In desperation I tried a long shot. I appended all the relevant source files together into one file and removed all the redundant includes. The program ran the first try and everything, even the broken stuff, was OK.
Does anyone out there have any experience with this? Any thoughts?

Thanks, in advance,

jd

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu