Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ASP and VFP COM objects
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Titre:
ASP and VFP COM objects
Divers
Thread ID:
00272103
Message ID:
00272103
Vues:
53
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
Fil
Voir

Click here to load this message in the networking platform