Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to implement OLE server as .DLL
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00107397
Message ID:
00107715
Vues:
24
I have discovered how to get the class to operate if I make an EXE server. The class I am trying to instantiate is a "custom" (non-visual) class with no code in any methods (just a stub). The main program of the project I compile into the OLE server is simply a RETURN. I have found out that I must set UDFPARMS to REFERENCE for the methods to work, but I can get it to run on any machine. The problem now is that I really want an inproc DLL server. The DLL now works fine in the development environment, but always crashes when I run the application as an EXE, even on my machine. It causes VFP500.DLL to crash somehow. All the machines have the VFP DLLs installed. The code to instantiate the object is simply:
oReports = CREATEOBJECT(c7Reports.ReportCode)
There are no messageboxes or anything. No code at all. I just want to instantiate an object. I have unregistered the EXE on all machines, so that's not a problem. The DLL successfully registers with RegSvr32. The error I get in NT usually reads something like this:
The instruction at "0x100bbb5e" referenced memory at "0x00000064". The memory could not be "read".
In Windows 95 I get:
C7BRIEF caused an invalid page fault in
module VFP500.DLL at 014f:10007b5d.
Registers:
EAX=00000000 CS=014f EIP=10007b5d EFLGS=00010216
EBX=00a7f068 SS=0157 ESP=0063de10 EBP=0063e124
ECX=3ffe6499 DS=0157 ESI=00a7f068 FS=13a7
EDX=fffffffc ES=0157 EDI=009e8000 GS=0000
Bytes at CS:EIP:
f3 ab 8b ca 83 e1 03 f3 aa 5f 5e c3 56 57 8b 01 
Stack dump:
0000000e 0063de1c 10007946 4e454700 4c415245 01b50000 00000574 494e5500 00545751 01b50000 0000078b 54554400 00004843 01b50000 000009ae 45434900
I hope I can get the DLL server to work, because an inproc server is so much better for what I am trying to do. I want to be able to use message boxes for one thing. Thanks for your help.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform