06-07-2008 10:04 AM
06-07-2008 02:05 PM
06-08-2008 12:52 AM
It's not clear to me if the longest operation of yours is loading the table or opening the file, and you should try checking it.
In the first case Maciek gave you the best suggestion of all, the only addition to it being that the table must not be the active control in the moment you are hiding and filling it (if it is, use SetActiveCtrl to move the focus to another control during this operation). On the other hand, if the problem is actually opening the file (with 30 MB of data it could take several seconds!) you should rethink your idea of segmenting data in several files, even with the difficulties you mentioned about the complexity of this operation.
06-08-2008 01:19 AM
06-08-2008 05:57 AM
Table issues aside, consider this:
In a system that only has 128MB RAM total! You shouldn't be expecting any sort of decent performance with that configuration.
The first thing you should do is to increase the RAM to 512MB. If that is impossible, then you will need to manage the amount of data loaded into RAM at any one time very carefully. In fact, you should only have loaded the data corresponding to what is actually displayed on the screen - anything more would be too much. Assuming your data file has fixed length records, random access into the file to pull out the required data on demand should be pretty easy (but admittedly harder than loading all of it).
06-08-2008 08:00 AM
06-08-2008 11:05 AM
06-08-2008 11:06 AM