chaat
Sophomore Member
Posts: 59
|
Post by chaat on Nov 3, 2019 15:23:26 GMT -5
George, do you have an estimate for when the Beta version will be ready for release ?
|
|
|
Post by George on Nov 4, 2019 11:54:37 GMT -5
Robert: Right now SPFLite takes a whopping 10 seconds to compile on my system. Log shows 270,000 total source lines (My code + Include files)
chaat: Right now I'm trying to chase a bug where SPFLite crashes on termination. It exists in V11 aswell, so it's not just my Beta code changes. MUEH has experienced it fairly regularly and even provided me with a batch file which cycles through activities repeatedly. (It opens 2 files in separate tabs, runs a short macro, and then terminates the whole thing)
Problem is, sometimes it will crash instantly, on the first loop. Next time it will run forever, never crashing. (a loop takes about 10-12 seconds, I've left it running for 10-15 minutes. Started it again - instant crash.
It's timing related, adding some debug code to chase it usually slows it down enough it doesn't happen. So I'm doing a lot of not-so-educated guessing, let's try this, let's try that etc. but so far it eludes me.
Maddening!
George
|
|
|
Post by George on Nov 5, 2019 13:39:58 GMT -5
Robert: If this were a handle problem, it would be a lot more repeatable than it is. It is more likely to be a timing problem with stuff that goes on asynchronously. And I think from my testing today that that is indeed the case. The crash is always happening at the point where tabs are closed. Either single tab close, or full EXIT processing where all tabs 'go away'.
The culprit (I'm pretty sure) turns out to be the use of Owner Drawn Status Bar boxes. The user code for drawing the SB boxes is called asynchronously by Windows via the normal program message queue. The messages are considered low priority, so their placement on the queue is not consistent. The routine of course fetches information from the active tab data areas. And if the data areas have just been released - Boom!
I've made changes in the SB draw routine, as well as several other suspicious areas to avoid these "late" accesses to tab data areas. Testing using the BAT file MUEH provided seems fine now, I cannot seem to get a failure.
So I'll post a new Beta and ask MUEH to try it out, he was getting hit pretty consistently.
Fingers crossed.
George
|
|