Guidance Forums / Reginald Rexx / InetMatchname crash

Search 搜索
Home Home

Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. InetMatchname crash
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)'*' 
  err = inetmatchname('DirList', fn)  <--- crashes here after running several MIN
  IF err == 'DONE' THEN LEAVE 
  IF err \== '' THEN LEAVE 
  IF dirlist.0 = '' THEN ITERATE       /*  directory */ 
  LINEOUT(filelistfn, dirlist)         /* save FN to download */ 
Posted by: Jeff Glatt 2008-11-12 02:54:13
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.
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  :-)
Posted by: Doug Arndt 2008-11-12 03:13:04
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 ?
Posted by: Jeff Glatt 2008-11-12 11:57:53
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,
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
© Wed 2024-2-21  Guidance Laboratory Inc. Hits:0