Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to implement OLE server as .DLL
Message
De
16/06/1998 15:49:47
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00107397
Message ID:
00108808
Vues:
43
The error I get (in NT) reads as follows:

The instruction at "0x100bbb5e" referenced memory at "0x00000064". The memory could not be "read".

Yes, all the machines have the VFP DLL files installed. In fact they all have VFP installed. The DLL works in the development environment, but gives the preceeding error when the main program is run as an EXE. In Windows 95, the error reads:

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 posted these errors earlier, but not in my original post. Thanks for the consideration everyone.

The error occurs when the following line instantiates the class from the DLL:

oReport = CREATEOBJECT("C7Reports.ReportCode")

No messageboxes or other UI are included in the OLE Server.

By the way, I found it very interesting to try to figure out how to pass a reference to an array to one method and a reference to an object to another of the methods of ReportCode. In the end, I discovered that to pass an array, I had to set udfparms to reference, but to pass an object reference, I had to set udfparms to value to avoid type mismatch errors. Even with udfparms set to value, the object was passed by reference. Very strance, but it works! But don't blame these strance techniques for my primary difficulty, because, as I have said, I cannot get the DLL to work even with no code. And with the current code it works great as an EXE. And even the DLL works from the FoxPro IDE.

Sorry for straying off the topic a bit.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform