DotGNU Portable.NET - Bugs: bug #9542, GCHandle.AddrOfPinnedObject gives...
You are not allowed to post comments on this tracker with your current authentication level.
bug #9542: GCHandle.AddrOfPinnedObject gives incorrect address for arrays
| Submitter: | Marcus Urban <mathpup> | ||
| Submitted: | Sat 03 Jul 2004 09:49:14 PM UTC | ||
| Category: | None | Severity: | 3 - Normal |
| Item Group: | None | Status: | Fixed |
| Privacy: | Public | Assigned to: | None |
| Open/Closed: | Closed | ||
|
Wed 07 Jul 2004 10:27:55 PM UTC, comment #2: |
Richard Baumann <Rich333> |
|
Sat 03 Jul 2004 11:08:30 PM UTC, comment #1: Here's a patch to resolve. I'm no sure if that will break something else...
|
Llewellyn Pritchard <leppie> |
|
Sat 03 Jul 2004 09:49:14 PM UTC, original submission:
When a GCHandle with GCHandleType.Pinned is created, it should be possible to obtain the address of the object with GCHandle.AddrOfPinnedObject(). When the object in question is an array, Pnet appears to return a pointer to some header information that preceeds the actual appear data. However, Rotor returns a pointer to the first element of the array. Note in the output samples below that element 1 is incorrect and that the array indexes are offset.
|
Marcus Urban <mathpup> |
Depends on the following items: None found
Items that depend on this one: None found
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 5 latest changes.
| Date | Changed by | Updated Field | Previous Value | => | Replaced by |
|---|---|---|---|---|---|
| 2004-07-07 | Rich333 | Status | None | Fixed | |
| Open/Closed | Open | Closed | |||
| 2004-07-03 | leppie | Attached File | - | Added leppie-040704.patch, #1458 | |
| 2004-07-03 | mathpup | Attached File | - | Added test.cs, #1457 | |
| 2004-07-03 | mathpup | Attached File | - | Added test.c, #1456 |

fixed in cvs