--- In [email protected], "Sheri" <[EMAIL PROTECTED]> wrote:

> Hi Sheri,

Hard one to diagnose.  Simplification might help.

E.g. if you embed contents of vfunction()
in body of testvfunction(), still problems?

If you reduce number of both iterations to 1, still problems?
If not, at what number of iterations does the problem appear?
 
> Please run the following script and see if you can figure out what the
> problem is (I think it has something to do with vector handle ov).
> 
> I tried it in empty pcf (no difference). It hangs up soon after
> completing interation 3.
> 
> ---------------------------
> PowerPro
> ---------------------------
> ERROR: regex.pcreMatchAll: Bad input params
> 
> Error occurred near line 10 of script [EMAIL PROTECTED]:
> regex.pcrematchall(?"\x22(.+?)\x22(?:,|$)",other, ?"$1", "", 0, ov)
> 
> Called from line 17 of script [EMAIL PROTECTED]
> Called from line 1 of script testrxma
> 
> Press Cancel to end all running scripts.
> ---------------------------
> OK   Cancel   
> ---------------------------
 
> 
> testrxma.powerpro:
> 
> testvfunction()
> quit
> 
> Function vfunction()
> for (local i=1;i<17;i++)
> local other=?z"Item One","Item Two","Item Three","Item Four"z
> if (vec.exists("ov"))
>   ov.destroy
> local ov=vec.create(10,1)
> regex.pcrematchall(?"\x22(.+?)\x22(?:,|$)",other, ?"$1", "", 0, ov)
> win.debug(i, regex_count)
> endfor
> quit
> 
> Function testvfunction()
> For (local x=1; x<17; x++)
> vfunction()
> win.debug("==== iteration "++x++" ====")
> endfor
> quit
>


Reply via email to