[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-dev] Crashes in findRegexp or File
- To: sc-dev@xxxxxxxxxxxxxxxx
- Subject: Re: [sc-dev] Crashes in findRegexp or File
- From: "James Harkins" <jamshark70@xxxxxxxxx>
- Date: Tue, 23 Dec 2008 15:55:20 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to :to:subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=rLIMn0JXyh7QcM3Tk6qOMra1Rj3nEOaPsUN6ZvxM4/o=; b=R4DLKESrXAb5+UrnnXkvdXGVBOfWkjRwPmv6V7c3fBSSicqCScYUny0B1vMWA6hHNv YM6Hl44XNW6OGBcvA/osD1p+Ou53jHHofLdrod9cFlbu8B2/FbzQOWNa0gbna6t1uVHj oftNBeAtbuWHxue0StFTEKjUNLQFzIJ8eEMvQ=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=W5S7bEVq//Av0eFceFI9mZuDgSoNWYsZC4h1BY4rl8dp/S6HOPFGChfVMVZs+A4tB0 jdeDyauBGMga+CRg4J1l7yh2Z1R2LMbKZur/XTU8DvkX5R/Lc/sfrQkWDZUafKmodjsx tgsWKKDyctxKbSkTfLda4Hdwqnf5MfkyKXBzc=
- In-reply-to: <49514EF5.3020202@xxxxxxxx>
- List-id: SuperCollider developers mailing list <sc-devel.create.ucsb.edu>
- References: <49514EF5.3020202@xxxxxxxx>
- Reply-to: sc-dev@xxxxxxxxxxxxxxxx
- Sender: owner-sc-dev@xxxxxxxxxxxxxxxx
findRegExp is partially broken -- something wrong with its
garbage-collection handling (which would cause crashes). Nobody has
looked into it AFAIK.
hjh
On Tue, Dec 23, 2008 at 3:49 PM, jostM <sc3@xxxxxxxx> wrote:
> I'm having constant crashes with this code. I've narrowed it down to
> either happening after reading the file several times, or using
> findRegexp (even with much simpler finds than here).
>
> I'm trying to write an automatic link fixer, but it fails because of
> these crashes.
>
> You may need to do this a few time in a row before it crashes the whol SCApp
>
>
>
> (
> p="Help/GUI/GUI-Classes.html";
> //path.postln;
> f=File.new(p,"r");
> q= f.readAllString;
> f.close;
>
> // this string finds links,
> // and parses them into a specific kind of array.
> r="<a href=[\"]([^\"]*)[\"]>[a-zA-Z0-9_< >\"/=\-]*</a>";
> l=q.findRegexp(r);
>
> )
--
James Harkins /// dewdrop world
jamshark70@xxxxxxxxxxxxxxxxx
http://www.dewdrop-world.net
"Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal." -- Whitman
_______________________________________________
sc-dev mailing list
info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-dev/
search: https://listarc.bham.ac.uk/lists/sc-dev/search/