[Mono-devel-list] string corruption
Dale Olds
olds at novell.com
Thu Feb 19 11:28:15 EST 2004
Hi,
I have been seeing some strange behavior with strings apparently
forgetting their values, and have distilled it down to the attached test
case. The test case involves nested value types that have a reference
type member, though I'm not sure that is directly related to the
problem. The test case succeeds if the the call to GC.Collect() is
removed.
The test fails on mono .30.1. I have not run this test on .net, but the
original problem from which this test was derived did not fail on .net
(but did on mono). Since the string contents in all the nested structs
after the call to GC.Collect() appear to be random memory (remove the
return to see this), I can't imagine it would be good even if it was
like .net.
Any ideas? I am not currently running on a build from CVS, but can do so
if it would help to further test this.
Thanks,
--Dale
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: values.cs
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040219/5a053cef/attachment-0001.pl
More information about the Mono-devel-list
mailing list