I think you are digging in the wrong place. Something goes wrong before it gets to that code.
>
> I have a program written back in vfp6, I think. It calls a Dll, to create a pdf file from a ps file. When I build the application in vfp8, then run it, the pdf is built with a size greater the 1KB, and Adobe Reader opens the file without a problem. But If I build the same application in vfp9, then run it, the pdf is built with a size of 1KB and Adobe Reader can not open the file.
>
> The line I see going wrong, looks like this:
>
<snip>
>
>the last line should be false, unles the process has timed out. It says true, the first time thru for vfp 9, while in vfp8, it will hit true after the pdf is built.
>
--sb--