program "hangs up"

Kenneth Brody kenbrody at spamcop.net
Tue Oct 7 14:14:59 PDT 2014


On 10/7/2014 4:52 PM, Richard Kreiss wrote:
> Windows server 2008
> filePro 5.7.03.06
>
> I have an output program which is not working properly.
>
> At @once the program reads into an array all of the pdf files in the directory web_files. When all of the files are read in, the @once section should end.
>
> The file name is in the format nnnn_yyyymmdd.pdf
>
> The main portion of the program checks to see if there is a directory for the nnnn portion of the file name and if not makes the directory.  If it exists, the file is copied to a directory TODAY and then moved into the correct NNNN directory.
>
> Here is my problem:
> 1. Program starts and then stops without at the first program line of @once

You seems to be missing some word(s) in the above sentence.

> 2. If run with the debugger, as lone an enter is pressed the program lines in @once execute.
> 3. When the program hits the END of the @once processing, the program stops.

When you say "the program stops", do you mean it freezes, without ever 
hitting output processing, or do you mean it "stops" in the sense that it 
successfully finishes?

> Batch file command line
> %pfprog%\fp\dreport library -f move_pdf -y !! -s one -u

What's in selection set "one"?

> The array dim getfiles(5000)(20,*).
>
> I adjusted the array to 900 elements as I thought this might be the problem.  It isn't.
>
> Yes, I could rewrite the program to post the files one at a time rather than reading them into an array.
>
> But that doesn't answer the question of why the program stops before executing any code in @once unless the debugger is on.

What makes you think it doesn't execute any @once code when not in the 
debugger?  Does the code interact with the user in any way?

If you put a MESGBOX at the start and end of @ONCE, are they executed?

-- 
Kenneth Brody


More information about the Filepro-list mailing list