bugDotGNU Portable.NET - Bugs: bug #6891, Delegates don't work correctly

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #6891: Delegates don't work correctly

Submitted by:  None
Submitted on:  Mon 01 Dec 2003 12:18:39 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

Mon 01 Dec 2003 01:08:55 AM UTC, comment #1:

Fix committed to CVS - 1 Dec 2003

Rhys Weatherley <rweather>
Project Administrator
Mon 01 Dec 2003 12:18:39 AM UTC, original submission:

The test program as attached has implemented 3 delegates, calculating the square of a number (2). One uses double as in- and output, a second integers. The third uses double as input and integer as output.

Compiling the program with cscc 0.6.0 and running it with ilrun 0.6.0 (pnetlib-0.6.0.1) calculates the correct values for the delegate with integer in- and output. Both other functions, return invalid values. Program output as follows:

Result: ISqr(2) = 4
Result: D2ISqr(2) = -2147483648
Result: DSqr(2) = NaN

Running the program compiled with cscc using Billy's .NET runtime returns the expected values. Therefore my first guess is, that there's a problem with the implementation of the delegate class in the mscorlib in pnetlib.

Anonymous

 

Attached Files
file #896:  delegate_test2.cs added by None (745B - application/octet-stream - Short demonstration program of delegate problem)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 4 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Mon 03 Sep 2007 08:52:40 AM UTCerkDependencies-=>bugs #8736 is dependent
Mon 03 Sep 2007 08:09:43 AM UTCjmmDependencies-=>bugs #20962 is dependent
Mon 01 Dec 2003 01:08:55 AM UTCrweatherOpen/ClosedOpen=>Closed
Mon 01 Dec 2003 12:18:39 AM UTCNoneAttached File-=>Added delegate_test2.cs, #890

Back to the top


Powered by Savane 3.1-cleanup1