dotgnu-pnet
[Top][All Lists]
Advanced

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

[Pnet-developers] [bug #20354] Problems with pinvoke declared to return


From: Radek Polak
Subject: [Pnet-developers] [bug #20354] Problems with pinvoke declared to return struct
Date: Thu, 05 Jul 2007 07:28:50 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en; rv:1.8.1.2) Gecko/20070220 Firefox/2.0.0.2

URL:
  <http://savannah.gnu.org/bugs/?20354>

                 Summary: Problems with pinvoke declared to return struct
                 Project: DotGNU Portable.NET
            Submitted by: radekp
            Submitted on: Thursday 07/05/2007 at 07:28
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

Hi,
in the attached sample we call Fn() via pinvoke.

If the pinvoke is declared to return int everything works.
If the pinvoke is declared to return struct with one int field, the arguments
are shifted.

Both declarations should work. This was tested with jit coder.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Thursday 07/05/2007 at 07:28  Name: pinvoke.tar.gz  Size: 4kB   By:
radekp

<http://savannah.gnu.org/bugs/download.php?file_id=13251>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?20354>

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



reply via email to

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