Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
I'm don't know who are my enemy, Fox o .NET...
Message
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
I'm don't know who are my enemy, Fox o .NET...
Divers
Thread ID:
00771035
Message ID:
00771035
Vues:
22
- Visual FoxPro 6 SP 3
- Windows XP Profesional
- VS.NET

I have a COM VFP DLL inside a Package in the component services (normal MTS solution). By the way, this work fine for the windows clients from a year.

Now, i develop a ASP.NET GUI frontend. I load the VFP Com Object for this task:

1- Retrive info in arrays. The server DLL retrieve Ado recordset disconnected and convert to arrays
2- Send info in arrays. The server retrieve empty ado disconnected recordset and assign the data from the array

I never pass .NET object to the dll...

So, sometimes happend this error:

"Error in a call to a remote procedure" and the rest of the stuff in the ASP.NET error page.Maybe no the best message, becuase the component is in the same box...maybe remote is because a COM server. With refresh of the page the error is gone. Always.

Can pass days without this error appear, maybe happend more one day,etc...

The dllhost.exe(the MTS process) is not free (and i put 0 minutes to the MTS package) when the sesion is closed. With the time, can appear 1-10 dllhost.exe procces in the taskbar, but this is not in a progresive way. So, if i run five time the asp.net site, not meaning that exist 5 dllhost.exe up. Sometimes blocked the VFP server, sometimes not. I learn from Delphi , and always free the objects manually and use a lot try/finally where have sense, and i chek that all external call&object are free after close the session... however i'm aware that exist the GC and i'm not necesay in control.

Probably VFP&COM is the worst combination that i see, and in the past as prove that is a call for trouble, but i need stick with this, so a rewrite of the server dll is not a option...

I'm unsure how i can solve this ... i try for months to figure what happend (mainly refactoring, check and check again my code and thing like this} but today is my rendition on this...

Thanks for your time...
The Life is Beautiful!

Programmer in
Delphi, VS.NET
MCP
Répondre
Fil
Voir

Click here to load this message in the networking platform