bugDotGNU Portable.NET - Bugs: bug #3387, string[]'s and PInvode

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #3387: string[]'s and PInvode

Submitted by:  None
Submitted on:  Tue 29 Apr 2003 10:50:32 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Thu 01 May 2003 10:30:18 AM UTC, comment #1:

Fix committed to CVS - 1 May 2003.

Rhys Weatherley <rweather>
Project Administrator
Tue 29 Apr 2003 10:50:32 AM UTC, 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);
}

...

Anonymous

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Thu 01 May 2003 10:30:18 AM UTCrweatherOpen/ClosedOpen=>(Error - Not Found)
Thu 01 May 2003 10:30:17 AM UTCrweatherStatusNone=>(Error - Not Found)

Back to the top


Powered by Savane 3.1-cleanup1