[Mono-bugs] [Bug 45637][Wis] New - The runtime should marshal strings for me

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Mon, 30 Jun 2003 10:41:13 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by nat@ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=45637

--- shadow/45637	Mon Jun 30 10:41:13 2003
+++ shadow/45637.tmp.1490	Mon Jun 30 10:41:13 2003
@@ -0,0 +1,35 @@
+Bug#: 45637
+Product: Mono/Runtime
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: nat@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Summary: The runtime should marshal strings for me
+
+In the dashboard, we're wrapping a C entry point that looks like this:
+
+void remem_run_query (char *db_dir, char *query_string, int n_docs, char
+**matches, float *sims);
+
+This function fills matches with strings before it returns.
+
+The wrapping is done here:
+
+http://cvs.gnome.org/bonsai/cvsblame.cgi?file=dashboard%2Fdashboard/shared-remem.cs&rev=1.5&root=/cvs/gnome
+
+The nasty bit is that, as you can see on line 40, we have to manually
+marshal opaque IntPtrs into strings.
+
+The runtime really should do this marshaling automatically; this is an ugly
+bit of wrapping code.
+
+We tried using the 'ref' keyword which actually caused the program to freeze.