| Forum List • Thread List • Refresh • New Topic • Search • Previous • Next 1 | 1. InetMatchname crash #12505 Posted by: Doug Arndt 2008-11-11 23:34:12 Last edited by: Jeff Glatt 2009-03-04 14:18:56 (Total edited 2 times) | I have a script using rexxinet, that logs in to a unix host, selects files based on month, then downloads them (thousands of small files). It loops, one month of files at a time.
This has been running fine until about May this year, since then the program crashes on the InetMatchName function, when trying to pull a new directory listing. "Rexx Programmer Center has encountered a problem and needs to close" and then does so, closes.
Running stand alone, same thing.
The failing step does run for several min before crashing. (The directory could be selecting around a thousand file names from upwards of 10,000 files) We crash on the first call to the routine, which normally does take a long time (minutes), then runs quickly writing the names to the file.
A "clip" of the code section .... receive a directory list and write names to file
fn = '*.D'processyear || RIGHT(processmo,2,0)'*'
DO FOREVER
err = inetmatchname('DirList', fn) <--- crashes here after running several MIN
IF err == 'DONE' THEN LEAVE
IF err \== '' THEN LEAVE
IF dirlist.0 = '' THEN ITERATE
LINEOUT(filelistfn, dirlist)
END Doug | 2. #12506 | What happened in May? Seems like there may have been some change on the server? It will be very difficult for me to debug something like this, without more to go on, since I don't have access to the test equipment. | 3. #12507 Posted by: Doug Arndt 2008-11-12 03:08:55 Last edited by: Doug Arndt 2008-11-12 03:10:40 (Total edited 1 time) | No, nothing has changed on the server or my code. However, here's something interesting ... I found I had an old copy of rexxinet.exe (from Aug 2007) it's 1K smaller than the current file. I reloaded the old rexxinet.exe and now I'm working again. So, I guess the question is, what changed in rexxinet :-)Doug | 4. #12508 | ps, now that i'm running again, i see that the directory it pulled has over 2300 entries in it. Could there be some buffer size issue ? Doug | 5. #12509 | Undoubtably, it's a buffer overrun error. Email me a copy of the old DLL file you're using, and I'll compare it to the recent version to see what exactly the difference is. Send email to the address in the Reginald FAQ (ie, roadrunner.com) | Forum List • Thread List • Refresh • New Topic • Search • Previous • Next 1 |
|
|