For Programmers: Free Programming Magazines  


Home > Archive > Clipper > September 2005 > Re: swpruncmd() - limit of calls









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: swpruncmd() - limit of calls
Stephen Quinn

2005-09-15, 9:55 pm


> clipper 5.2e
> blinker - any
> OS - any
>
> for i:=1 to 200
> swpruncmd("dir *.txt")
> next
>
> result - gpf after appr. 100 calls.
>
> Yours suggestion?


Simply don't do it (or limit your loop to < 100) - it's stupid coding IMO, there
are other ways to get/display a listing of all .txt files in a directory that
don't require the use of swpruncmd().

I can see no reason why you would want to do this and you've not said WHY you
want this type of functionality

Have you tried putting a delay in the loop to give the OS time to do it's thing
(other than thrash memory)??
> for i:=1 to 200
> swpruncmd("dir *.txt")

inkey(5)
> next


HTH
Steve


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com