Roger Pack wrote:
> Wondering if anybody's had memory corruption with mingw before.  This
> works fine for VC and for Linux (it's just some base rails code).
> Anyway somehow or other it gets corrupted and inserts random bytes into
> a "Buffer"
> 
> like \000 and EOF and random junk.  It occurs in thsi snippet of erb.rb
> code.  Any help appreciated :)
> -Roger
> >            out.push("#{@put_cmd} #{content.dump}") if content.size > 0

This line turned out to be the culprit.  Rmagick on mingw still had a 
'legacy' bug of rewriting String.dump poorly.  Rewrote it and rails 
works now, in case anyone wonders.
Thanks!
-Roger
-- 
Posted via http://www.ruby-forum.com/.