Re: cygwin setup 2.510.2.1 does not work because of an invalid iterator.

2005-09-11 Thread Christopher Faylor
On Sun, Sep 11, 2005 at 02:08:48PM +0200, Krzysztof Duleba wrote: >This was originally sent to gmane.os.cygwin.applications, but I can't >write there. No, it was sent to the cygwin-apps mailing list which is subscriber-only. Please don't confuse discussions by redirecting mail to other mailing li

Re: cygwin setup 2.510.2.1 does not work because of an invalid iterator.

2005-09-11 Thread Krzysztof Duleba
Krzysztof Duleba wrote: > What's the difference? I mean, you're still using i after erasing it. Please ignore this thread. Now I see why it should work. Krzysztof Duleba -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Do

Re: cygwin setup 2.510.2.1 does not work because of an invalid iterator.

2005-09-11 Thread Krzysztof Duleba
Krzysztof Duleba wrote: > { > /* Should we erase */ > pkg.versions::iterator next_i = i; That should read set::iterator next_i = i; > ++next_i; > if(next_i == pkg.versions.end()){ > pkg.versions.erase(i); > break; > }else{ > pkg::value_type tmp

Re: cygwin setup 2.510.2.1 does not work because of an invalid iterator.

2005-09-11 Thread Krzysztof Duleba
This was originally sent to gmane.os.cygwin.applications, but I can't write there. M.Fujii wrote: > > Calling erase() in packagemata::ScanDownloadedFiles() invalidates > iterator i. > Therefore, ++i after erase() means an operation to a invalid > iterator. I guess it is the cause of a crash of set