General information
Category:
COM/DCOM and OLE Automation
Title:
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.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only