dotgnu-pnet
[Top][All Lists]
Advanced

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

[Pnet-developers] [Bug #3387] string[]'s and PInvode


From: nobody
Subject: [Pnet-developers] [Bug #3387] string[]'s and PInvode
Date: Thu, 01 May 2003 06:30:18 -0400

=================== BUG #3387: LATEST MODIFICATIONS ==================
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=3387&group_id=353

Changes by: Rhys Weatherley <address@hidden>
Date: Thu 05/01/2003 at 10:30 (GMT)

            What     | Removed                   | Added
---------------------------------------------------------------------------
          Resolution | None                      | Fixed
              Status | Open                      | Closed


------------------ Additional Follow-up Comments ----------------------------
Fix committed to CVS - 1 May 2003.



=================== BUG #3387: FULL BUG SNAPSHOT ===================


Submitted by: None                    Project: DotGNU Portable.NET          
Submitted on: Tue 04/29/2003 at 10:50
Category:  None                       Severity:  5 - Major                  
Bug Group:  None                      Resolution:  Fixed                    
Assigned to:  None                    Status:  Closed                       

Summary:  string[]'s and PInvode

Original Submission:  After calling a C method that takes a char**, the result 
is garbage (not even a partial conversion.)

For example:

------------------- C Library -----------------------------

extern "C" void c_myFunc(int i, const char* str[])
{
    /* This prints garbage */
    printf(str);
}

-------------------- C# Class -----------------------------

...

[DllImport("mylib")] static extern void c_myFunc(int i, string[] str);
public void myFunc(int i, string[] str)
{
    c_myFunc(i, str);
}

...

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

-------------------------------------------------------
Date: Thu 05/01/2003 at 10:30       By: rweather
Fix committed to CVS - 1 May 2003.


CC list is empty


No files currently attached


For detailed info, follow this link:
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=3387&group_id=353


reply via email to

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