[Mono-bugs] [Bug 516676] Spurious unitialized variable error CS0165
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Jun 25 21:46:41 EDT 2009
http://bugzilla.novell.com/show_bug.cgi?id=516676
User raof at ubuntu.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=516676#c1
Chris Halse Rogers <raof at ubuntu.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |raof at ubuntu.com
--- Comment #1 from Chris Halse Rogers <raof at ubuntu.com> 2009-06-25 19:46:40 MDT ---
For added strangeness that will possibly help you track this down I have the
following snippets of my attempts to work around this bug in the GNOME Do
plugins code:
This snippet builds:
Services.Application.RunOnThread ( () => {
/* Mono 2.4 bug hack
* This can't use using () due to some crazy-wierd scoping problem.
* See https://bugzilla.novell.com/show_bug.cgi?id=516676 for details.
*/
IEnumerable<IFileItem> temp = uploads;
UploadPool uploadQueue = new UploadPool (tags);
try {
foreach (IFileItem photo in uploads)
uploadQueue.EnqueueUpload (photo);
uploadQueue.BeginUploads ();
} finally {
uploadQueue.Dispose ();
}
});
This snippet:
Services.Application.RunOnThread ( () => {
/* Mono 2.4 bug hack
* This can't use using () due to some crazy-wierd scoping problem.
* See https://bugzilla.novell.com/show_bug.cgi?id=516676 for details.
*/
UploadPool uploadQueue = new UploadPool (tags);
IEnumerable<IFileItem> temp = uploads;
try {
foreach (IFileItem photo in uploads)
uploadQueue.EnqueueUpload (photo);
uploadQueue.BeginUploads ();
} finally {
uploadQueue.Dispose ();
}
});
fails, with "error CS0165: Use of unassigned local variable `uploads'"
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list