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".

It could be a record locking issue, not a deadlock issue. I'm not sure if I document this, but all tables are set read only before On Session End runs.


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.

You can use Console to view any log file without losing data. (BTW, "loose" is the opposite of "tight", "lose" is the opposite of "find". Unfortunately it seems the entire world has forgotten this distinction.)


"On Session End" seems to have very defensive code - It does not report syntax errors.

If you have the log level high enough, I believe syntax errors are reported in Active4D.log. In general, I need to overhaul the logging facilities in Active4D. v5 will have much, much more logging.


I'm not sure what a "single" set global command is?

If you are only using "set global" to set a single global, there is no need to lock. If you are setting several globals and you want the entire group of settings to be atomic, you have to wrap them in lock/ unlock.


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

It certainly shouldn't.


Maybe too many ?, but I'd just like to know what I'm doing wrong?

You may not be doing anything wrong.


in my previous post I said I'm ready for abuse, but didn't even get a "Doh!".

Sorry for the delay, I've actually been bedridden for the past two weeks with a serious infection, so I wasn't in a position to do any serious debugging. I'm feeling much better now, we'll get to the bottom of this soon.

Regards,

   Aparajita
   www.aparajitaworld.com

   "If you dare to fail, you are bound to succeed."
   - Sri Chinmoy   |   www.srichinmoylibrary.com


_______________________________________________
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