On Mar 12, 2008, at 10:01 AM, mark winkler wrote:
Also, we are catching the invalid collection handle and using Log
Message to
write to the Active4D log file. Is there any session information we
could
write to the log that would be helpful in tracking down this issue?
Are the sessions timing out?
Are you clearing the global collections in "On Session End"?
Sure looks like you may be missing a global "*" somewhere.
I had a lot of problems with global collections - mostly mine -
forgetting to make global etc. I didn't have embedded collections but
ended up writing a couple library routines to keep me straight.
method "makeGobalSessionCollection"($key;$collection)
if(session has($key))
if(is a collection(session{$key}))
clear collection(session{$key})
end if
end if
session{$key} := copy collection($collection;*)
end method
method "mergeGlobalSessionCollections"($key;$collection1;$collection2)
$tempHandle := merge collections($collection1;$collection2;*)
if(session has($key))
if(is a collection(session{$key}))
clear collection(session{$key})
end if
end if
session{$key} := $tempHandle
end method
I only had the one global collection - but would store different
things in it depending on the task and at times would not clear the
collection at the end of a process. In "on session end", I had code to
clear the collection:
if(session has("eform"))
if(is a collection(session{"eform"}))
clear collection(session{"eform"})
end if
end if
Steve Alex
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/