I'm really having a hard time deciding when, and more importantly, when not to use these command.

I continue to have what seems to be a deadlock issue on abandon session (housekeeper). I'm trying to analyze my logs, but several times a day, Active4D seems to go into limbo land for around two minutes. 90+% of these times I can point to "On Session End". The other 10% I can't be sure because trying to access the Active4D.log file with log.app, textmate, bbedit or whatever while the system is running probably may loose data.

"On Session End" seems to have very defensive code - It does not report syntax errors. In trying to debug my problem, I've entered debugging code with syntax errors (not on purpose!) and it just quits when it hits the error. Running the code in a test script, I found the error and corrected it - but that only fixed the debugging code, not the root problem.

From the documentation:

"Note that in the On Session End method, the globals are not being locked. Active4D automatically locks the globals within the set global command, so for a single set
global call it is not necessary to lock the globals. "

confuses me because I'm not sure what a "single" set global command is? Is not (from the previous documentation example)

    lock globals     // Make sure we have exclusive access
    set global("last visit"; current time)
    set global("visitors"; get global("visitors") + 1)
    unlock globals   // Let other processes have access

two "single" set global commands? Is it a universal rule, or only active in "On Session End"?

If I "lock globals" in "On Session End" for a "single" set command, does my lock and Active4D's lock deadlock?

Maybe too many ?, but I'd just like to know what I'm doing wrong? in my previous post <http://www.mail-archive.com/active4d-dev% 40aparajitaworld.com/msg04547.html> I said I'm ready for abuse, but didn't even get a "Doh!".

I need a hint.

Steve Alex
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Reply via email to