Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OLE Server DLL and EXE both fail.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00107375
Message ID:
00107644
Vues:
15
>I am trying to define a class in one VFP project and access it from another project. When I compile the project containing the separate class into a .DLL and register it with RegSvr32, it crashes my program when I do a CreateObject on the OlePublic class (regardless of what init code I use in the class, including none at all). When I unregister the .DLL, recompile the OLE server project into an EXE, and run the EXE with the /regserver command-line option, my program runs fine to a point. The init code of the object runs. However, I have noticed that any time I include a PARAMETERS statement in a method and call the method from my program, it hangs indefinitely. I have been unable to solve eithr approach. I would prefer to use the .DLL, as an inproc server is more suitable to my application. Any ideas? Thanks for the help in advance.

Brian,

I am not sure what this could be. I need more information about the class and what it does... is there any GUI in the code? Make sure that there is no GUI (messagebox, forms, whatever) in the code and see what happens.

Other than that, I am not sure what it could be without some more information and possibly even the code for the class.
Menachem Bazian, CPA
President
BC Consulting Services, Inc.
973-773-7276
Menachem@BazianCentral.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform