dotgnu-pnet
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pnet-developers] [bugs #11212] Marshalling bug - code pointer in struct


From: Gopal.V
Subject: [Pnet-developers] [bugs #11212] Marshalling bug - code pointer in struct marshalled to unmanaged becomes invalid
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

This mail is an automated notification from the bugs tracker
 of the project: DotGNU Portable.NET.

/**************************************************************************/
[bugs #11212] Latest Modifications:

Changes by: 
                Gopal.V <address@hidden>
'Date: 
                Sat 12/11/2004 at 14:45 (Asia/Calcutta)

------------------ Additional Follow-up Comments ----------------------------
I added WriteLines for cbi.callback in the code and this is what it threw up.

First time
call+CallbackDelegate
Proceed to emitter
Proceed to callback
Second time
Uncaught exception: System.NullReferenceException: The value 'null' was found 
where an instance of an object was required

So you're getting a C# null for the delegate there.






/**************************************************************************/
[bugs #11212] Full Item Snapshot:

URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=11212>
Project: DotGNU Portable.NET
Submitted by: Ilyak
On: Sat 12/04/2004 at 08:04

Category:  None
Severity:  5 - Average
Item Group:  None
Resolution:  None
Privacy:  Public
Assigned to:  None
Status:  Open


Summary:  Marshalling bug - code pointer in struct marshalled to unmanaged 
becomes invalid

Original Submission:  There is an example that shows problem: If i have a 
struct with Delegate in it, and i pass ref ThisStruct to unmanaged method 
twice, on second pass Delegate becomes invalid and ilrun crashes.

Mono crashes even on first pass there :))

Follow-up Comments
------------------


-------------------------------------------------------
Date: Sat 12/11/2004 at 14:45       By: Gopal.V <t3rmin4t0r>
I added WriteLines for cbi.callback in the code and this is what it threw up.

First time
call+CallbackDelegate
Proceed to emitter
Proceed to callback
Second time
Uncaught exception: System.NullReferenceException: The value 'null' was found 
where an instance of an object was required

So you're getting a C# null for the delegate there.






File Attachments
-------------------

-------------------------------------------------------
Date: Sat 12/04/2004 at 08:04  Name: bug.tar.gz  Size: 684B   By: Ilyak
Tiny bug example. Run build.sh to make.
http://savannah.gnu.org/bugs/download.php?item_id=11212&amp;item_file_id=1942






For detailed info, follow this link:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=11212>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]