I suspect that will solve the problem. You are likely seeing a resource contention issue with that amount of usage.
I typically use the user scope (and also, only assign if empty) for the majority of my objects. This has the added benefit of speeding up page generation times, as well as lessening the load on the server resources. Note that if the same user accesses the object twice, information from the first use may carry over to the second. If the object contains a 'clean-up' routine to purge out the old variables, you'll have to use it. Otherwise, you'll need to adjust your code to clear/purge any variable that is not being explicitly set with new data. Robert _____ From: Richard Bor [mailto:[email protected]] Sent: Wednesday, June 17, 2009 11:24 AM To: [email protected] Subject: RE: Witango-Talk: Cannot create native object Thanks, Robert. The object serves about a million graphs a week, and is declared in request scope for every request. We're going to take a look at creating the object in user scope instead, and only create it if it doesn't already exist. That will bring down the number of times the object is created significantly and hopefully keep things more stable. Richard Bor _____ From: Robert Shubert [mailto:[email protected]] Sent: Tuesday, June 16, 2009 15:49 To: [email protected] Subject: RE: Witango-Talk: Cannot create native object I've never seen this before, and use many COM objects in various projects on my servers. My initial thought is whether or not the object is threadsafe. Witango is a multithreaded environment. Does it seem to stop working under higher loads? It may also be possible to create the object less often by reusing the same object over and over. This can be done by using higher scopes for the object variable, however, this can also have some downsides during execution if you aren't careful it taking into account user session. Robert _____ From: Richard Bor [mailto:[email protected]] Sent: Tuesday, June 16, 2009 1:56 PM To: [email protected] Subject: Witango-Talk: Cannot create native object We're using a third party graphing tool that requires us to access it as a COM object. It works fine for a while, sometimes a week, sometimes a few hours, but then it all of a sudden fails with a "Cannot create native object" error message and the only thing that seems to make it work again is to reboot the entire web server. Does anyone have an idea as to what can cause this behavior and/ or what we can do to troubleshoot this? The web server is running Windows Server 2003 R2, IIS 6, and WiTango 5.5.020 Thanks, Richard Bor _____ Email Confidentiality Notice: The information contained in this transmission is confidential, proprietary or privileged and may be subject to protection under the law. The message is intended for the sole use of the individual or entity to whom it is addressed. If you are not the intended recipient, you are notified that any use, distribution or copying of the message is strictly prohibited and may subject you to criminal or civil penalties. If you received this transmission in error, please contact the sender immediately by replying to this email and delete the material from any computer. ________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf ________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf _____ Email Confidentiality Notice: The information contained in this transmission is confidential, proprietary or privileged and may be subject to protection under the law. The message is intended for the sole use of the individual or entity to whom it is addressed. If you are not the intended recipient, you are notified that any use, distribution or copying of the message is strictly prohibited and may subject you to criminal or civil penalties. If you received this transmission in error, please contact the sender immediately by replying to this email and delete the material from any computer. ________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf ________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
