Information générale
Catégorie:
The Mere Mortals Framework
Titre:
ASP and VFP COM objects
Ok, I seem to be constantly missing something here, so I am once again asking for assistance. I have created a VFP OLE Public server which works great from Foxpro, even when instantiated using OLE and not just as a class library (CreateObject("RC.SessionManager") versus CreateObject("SessionManager"))
However, I am trying to run this OLE Server from within ASP and it seems to work on the first go around, yet on the second time the page is hit, I get the following error:
RC.usermgrbizobj error '80004005'
cregistry.error c:\dev\shared\mmortals\common30\libs\ccontrls.vct Error in line 94 is not an object. 924
/rc/login.asp, line 7
Line 7 of /rc/login.asp reads:
Set oSessionMgr = Server.CreateObject("RC.SessionManager")
I get the exact same problem if I create a VB App that does the same thing. It seems that VB doesn't release it's previous reference and some of the code that is executing within MM is finding a reference to the goApp object. This in turn causes code to be executed which normally wouldn't be executed during the first instantiation of the object. I tried adding a method call ReleaseObject (for some reason it wouldn't recognize the standard Release method) and running that prior to the end of each page, but it doesn't seem to help.
Thank You,
Justin Spies
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement