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

Submitter:  None
Submitted:  Mon 01 Dec 2003 12:18:39 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned 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>
Group 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

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

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

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

Follow 2 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2003-12-01 rweather Open/ClosedOpen Closed
2003-12-01 None Attached File- Added delegate_test2.cs, #890

Back to the top

Powered by Savane 3.15-94dd.
Corresponding source code