Guidance
指路人
g.yi.org
Guidance Forums / Reginald Rexx / InetMatchname crash

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. 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       /*  directory */ 
  LINEOUT(filelistfn, dirlist)         /* save FN to download */ 
END
Doug
Message2.
#12506
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.
Message3.
#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
Message4.
#12508
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 ?
Doug
Message5.
#12509
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, roadrunner.com)
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
¥1,420.00 ·
 
 
¥950.00 ·
 
 
¥288.00 ·
 
 
¥738.00 ·
 
 
¥397.00 ·
 
 
¥750.00 ·
© Sun 2024-11-24  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0