sorting associative array's keys by values
    maarten van damme 
    maartenvd1994 at gmail.com
       
    Sat Jun 16 10:51:25 PDT 2012
    
    
  
For some crazy reason my program now crashes on seemingly random
locations when parsing content of the form:
	                <div class="details">
	                    <h1 class="unique">randomname</h1>
I want to extract randomname but an xml parser would be overkill so I
extract it using
curLine=curLine[curLine.countUntil(">")+1..$];
curLine=curLine[0..curLine.countUntil("</")];
with curLine containing the contents of the second line.
When it crashes, it does so on the second instruction. I tried
wrapping try{}catch around it but to no avail.
I have no problem with it crashing, could be a logic mistake, but I
really need to be able to rely on try{}catch...
It's really strange because every string involved in the process is
completely cleared and it fails sometimes on cases where it has no
problems the other times.
    
    
More information about the Digitalmars-d-learn
mailing list