Bug 318600 (MONO75657) - Assigned delegate gets replaced by a wierd delegate.
Summary: Assigned delegate gets replaced by a wierd delegate.
Status: RESOLVED MOVED
Alias: MONO75657
Product: Mono: Runtime
Classification: Mono
Component: misc (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Major
Target Milestone: ---
Assignee: Mono Bugs
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-28 20:57 UTC by Mart Roosmaa
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Testcase for bug #75657 (815 bytes, text/plain)
2005-07-28 20:58 UTC, Thomas Wiest
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 19:26:00 UTC


---- Reported by roosmaa@gmail.com 2005-07-28 13:57:22 MST ----

Description of Problem:
When storing a delegate to a Dictionary<string, MyDelegate>, it gets
replaced by some strange delegate (e.g: GLib.IdleHandler) after some
actions. I have included a testcase, which should hopefully reporoduce it
on other machines. (The testcase is stripped down as much as possible for
the bug to show it self, any other bigger changes will hide it for some
time again.)


Steps to reproduce the problem:
1. gmcs -out:DelegateProblem.exe
-r:/usr/local/lib/mono/gac/gdk-sharp/2.6.0.0__35e10195dab3c99f/gdk-sharp.dll
-r:/usr/local/lib/mono/gac/gtk-sharp/2.6.0.0__35e10195dab3c99f/gtk-sharp.dll
DelegateProblem.cs
2. mono DelegateProblem.exe

Actual Results (The output of my testcase):
Printing:
test - GLib.IdleHandler, glib-sharp, Version=2.6.0.0, Culture=neutral,
PublicKeyToken=35e10195dab3c99f

Expected Results:
Printing:
test - MyDele, DelegateProblem, Version=0.0.0.0, Culture=neutral,
PublicKeyToken=null

How often does this happen? 
Always in the application it surfaced. In testcase as long as it is left
unmodified.



---- Additional Comments From roosmaa@gmail.com 2005-07-28 13:58:36 MST ----

Created an attachment
Testcase for https://bugzilla.novell.com/show_bug.cgi?id=MONO75657




---- Additional Comments From vargaz@gmail.com 2005-07-28 18:46:54 MST ----

Could you try running your program with GC_DONT_GC=1 env var setting ?



---- Additional Comments From roosmaa@gmail.com 2005-07-28 18:53:04 MST ----

With GC_DONT_GC it works fine.



---- Additional Comments From vargaz@gmail.com 2005-07-29 07:54:40 MST ----



*** This bug has been marked as a duplicate of https://bugzilla.novell.com/show_bug.cgi?id=MONO75479 ***

Imported an attachment (id=168279)

Unknown bug field "cf_op_sys_details" encountered while moving bug
   <cf_op_sys_details>Ubuntu Hoary; Mono (--with-preview) from SVN HEAD; Gtk# 2.6</cf_op_sys_details>
Unknown operating system unknown. Setting to default OS "Other".
This bug was marked DUPLICATE in the database it was moved from.
    Changing resolution to "MOVED"