Bug 363 : auto format crashes trying to format the following
Last modified: 2010-03-26 07:07




Status:
RESOLVED
Resolution:
FIXED -
Priority:
P4
Severity:
normal

 

Reporter:
Salt and Onion
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2006-06-01 05:26
I hope this isn't a repost... processing ran out of memory while trying to
autoformat the following code

[quote]

[color=#CC6600]void[/color] tryYahoo([color=#CC6600]String[/color] subject){
noConnection = [color=#CC6600]false[/color];
[color=#CC6600]try[/color]{

yahoo =
xmlInOut.loadElementFrom([color=#CC0000]"http://news.search.yahoo.com/news/rss?ei=UTF-8&va="[/color]+subject+[color=#CC0000]"&va_vt=any&vp=&vp_vt=any&vo=&vo_vt=any&ve=&ve_vt=any&datesort=&pub=&timeago=&smonth=4&sday=29&emonth=5&eday=29&source="[/color]+name+[color=#CC0000]"&location=&fl=0&n=10&eo=UTF-8"[/color]);

[color=#777755]// yahoo =
xmlInOut.loadElementFrom("http://news.google.com/news?svnum=10&as_scoring=r&hl=en&ned=us&as_drrb=q&as_qdr=&as_mind=2&as_minm=5&as_maxd=1&as_maxm=6&q=bush+source:bbc_news&ie=UTF-8&output=rss");[/color]
cmdPrint([color=#CC0000]"Connected with Yahoo News"[/color]);
}
[color=#CC6600]catch[/color](InvalidDocumentException ide){

cmdPrint([color=#CC0000]"Yahoo could not be reached"[/color]);
noConnection = [color=#CC6600]true[/color];
}
done=[color=#CC6600]true[/color];
}


[/quote]

I've tried it on 107, 114, 115 and it crashes on all 3. any ideas? I know
how buggy autoformat is. Everything else can autoformat fine, I figured
out it's something inside this function that's crashing the autoformat...

-jay
Additional Comment #1 From Salt and Onion 2006-06-01 05:27
here's a better fromat for the code


void tryYahoo(String subject){
noConnection = false;
try{

yahoo =
xmlInOut.loadElementFrom("http://news.search.yahoo.com/news/rss?ei=UTF-8&va="+subject+"&va_vt=any&vp=&vp_vt=any&vo=&vo_vt=any&ve=&ve_vt=any&datesort=&pub=&timeago=&smonth=4&sday=29&emonth=5&eday=29&source="+name+"&location=&fl=0&n=10&eo=UTF-8");

// yahoo =
xmlInOut.loadElementFrom("http://news.google.com/news?svnum=10&as_scoring=r&hl=en&ned=us&as_drrb=q&as_qdr=&as_mind=2&as_minm=5&as_maxd=1&as_maxm=6&q=bush+source:bbc_news&ie=UTF-8&output=rss");
cmdPrint("Connected with Yahoo News");
}
catch(InvalidDocumentException ide){

cmdPrint("Yahoo could not be reached");
noConnection = true;
}
done=true;
}


Additional Comment #2 From Salt and Onion 2006-06-01 05:28
Additional Comment #3 From fry 2007-02-03 09:54
it's just buggy. i'm hoping to swap it out for a better formatter within a
release or two.