Information générale
Catégorie:
COM/DCOM et OLE Automation
Titre:
VFP 5.0 app calling VFP 6.0 dll calling third party fll
I've recently acquired a project which steered me into a rather interesting scenario.
I created a dll using VFP 6.0 that calles a 3rd party fll. Now I'm using that dll in an exe I created with VFP 5.0. This all works fine and dandy until I quit the exe. At this time, a window's error occurs - 'VFP caused an invalid page fault in kernel32'. This will happen also when running the VFP 5.0 application in the development environment instead of a compiled exe. I've tried everything in the destroy event of the public class from the dll - 'release all', 'clear all', 'freelibrary', 'clear dlls', etc. I get sporadic results, sometimes the application finishes nicely at the end, other times when I run it, it crashes kernel32 often locking up the whole pc (with no code modification).
As a side note, the third party fll is a library from MagnaCarta (CommTools) that I use to access the comm ports.
I appreciate any input.
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement