Hello, fellow VFP programmers!
Have anybody tried to use Adobe's PDF.OCX in VFP app? Now, the problem: I have PDF.OCX control in a form; whenever I execute the program in VFP environment and open an instance the form with this PDF.OCX, and then exit the program it crushes VFP ("VFP7 has caused an error in KRNL386.EXE etc." type of message). To add worse to the bad, it doesn't happen immediately after I exited my program and returned back to VFP, it happens only after some time lapsed (period also varies). When I run compiled EXE the error message reads different - and differs every time - but is still the same in essence.
I also noticed that the process Acrord32 is still running even after I close VFP or exit program, and it still runs even after any of those system error messages. But if I manage to Alt-Ctrl-Del and End Task on the Acrord32 process before the error occures - no crushes whatsoever.
I used the guidelines in August 2002 FoxPro Adviser issue (p. 10, "Shut Down Abandoned Applications"
and wrote procedure that closes all the background windows with the word "Acrobat" in its' classes names - still the same, Acrord32 is still running and does it's "dirty trick"
of "pitching" VFP 7.0 against Kernel
.
Have anybody run into anything like this?
Another question: have anybody ever written a procedure to close the process itself, not just a window(s) generated by this process?
Thanx!
Regards,
Ilya
PS If anybody's interested in the code of that procedure for closing the preocess' related windows - I can provide it (post it here).
Have anybody tried to use Adobe's PDF.OCX in VFP app? Now, the problem: I have PDF.OCX control in a form; whenever I execute the program in VFP environment and open an instance the form with this PDF.OCX, and then exit the program it crushes VFP ("VFP7 has caused an error in KRNL386.EXE etc." type of message). To add worse to the bad, it doesn't happen immediately after I exited my program and returned back to VFP, it happens only after some time lapsed (period also varies). When I run compiled EXE the error message reads different - and differs every time - but is still the same in essence.
I also noticed that the process Acrord32 is still running even after I close VFP or exit program, and it still runs even after any of those system error messages. But if I manage to Alt-Ctrl-Del and End Task on the Acrord32 process before the error occures - no crushes whatsoever.
I used the guidelines in August 2002 FoxPro Adviser issue (p. 10, "Shut Down Abandoned Applications"
Have anybody run into anything like this?
Another question: have anybody ever written a procedure to close the process itself, not just a window(s) generated by this process?
Thanx!
Regards,
Ilya
PS If anybody's interested in the code of that procedure for closing the preocess' related windows - I can provide it (post it here).