Upon webapp initialization (webobjects create time) , in some cases I need to call ServerVariable function.

But it returns error 4399 "Attempt to use object before it's been initialized, pvComObject is NULL." error when HttpServerVariable of cComIWebAppServerClientSession is called.

Is there any webapp property that I can test and trust to tell me if the webapp has finishe/completed the startup process ?
I found none looking at the cwebapp help.