For Programmers: Free Programming Magazines  


Home > Archive > Clipper > October 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
suv2@mail.ru

2005-09-19, 6:55 pm

> 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().


:-))))) This is simply THE TEST!!!!

My programm need to run the external utility. Many many a times
There is exist computers, on which test will NOT works.

> Have you tried putting a delay in the loop to give the OS time to do it's thing

(other than thrash memory)??

Yes. Without success.

Stephen Quinn

2005-09-19, 6:55 pm

> :-))))) This is simply THE TEST!!!!
>

Do you mean to say your going to run this utility 200 times in a tight loop??
If not the test is pointless - your chasing shadows.
If your test fails after 1 or 2 iterations then I'd say you might have found a
problem, but after ~100 iterations then I'd be looking at doing things another
way.

> My programm need to run the external utility. Many many a times
>

Well why not change the model your using
- write a windows app that monitors some directory/settings and runs the
utility as another process. No need for swpruncmd() at all then.

HTH
Steve


Stephen Quinn

2005-09-20, 9:55 pm


Do the DOS sessions close down cleanly between iterations??
What/How many (DOS) processes are running on your customers machine when it
fails??

> initiates "swpruncmd()" by the own actions. The programm fails after NN
> hours continuous job.

When you say 'program' here do you mean your app or the utility??
How long is 'NN'??
Could the utility be hung and it's causing your app to fail??

Can you show us the relevant application code??
- not the test stuff, including the surrounding 10-20 lines of code
- have you tried using/setting ALL the parameters of the swpruncmd()

Does this utility run multiple times at all??
- can you have 2 or more DOS sessions running the utility at the same time
- if so how do you manage conflicts (ie accessing/processing files, etc...
assuming that's its job)

Can you tell us what the utility does??
Can you include it's functionality into your app??

HTH
Steve


Stephen Quinn

2005-09-27, 7:55 am

>> - have you tried using/setting ALL the parameters of the swpruncmd()
> This is not necessarily

The question was 'have you tried it'
- how do you know that it won't help you with the problem??

> No.

Have you looked to see if you can achieve the same functionality using VOUCHLIB
(a clipper library that can interface to windows OS), especially for this part
of your code
and probably[color=darkred]
> // return domain user array


HTH
Steve


Stephen Quinn

2005-09-28, 7:55 am

> It is inadmissible to mask a problem (by using vouch32, other win-app),
Vouchlib isn't a wiindows app - it's a clipper library which you can link into
your clipper app.

If you still have problems with swpruncmd() then I suggest you approach the
Blinker developers with the problem as they are the only ones who can fix it at
the source.
Alternatively maybe you need to upgrade to the latest version (I can't recall if
you stated the version your currently using).
http://www.blinkinc.com

HTH
Steve


Markus Wiederstein

2005-10-01, 6:55 pm

Am Sat, 01 Oct 2005 18:34:11 +0200 hat <suv2@mail.ru> geschrieben:
>
> I think, that the reason of a mistake - in operational system.
> After installation of OS and installation of all updatings the mistake
> disappears.


no comment :-(
Sponsored Links







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

Copyright 2008 codecomments.com