[pcre-dev] [Bug 1209] Calling pcre_free from C# causes a mem…

Startseite
Nachricht löschen
Autor: Alexander Vostres
Datum:  
To: pcre-dev
Alte Treads: [pcre-dev] [Bug 1209] New: Calling pcre_free from C# causes a memory access violation
Betreff: [pcre-dev] [Bug 1209] Calling pcre_free from C# causes a memory access violation
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1209

Alexander Vostres <alexx999@???> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID





--- Comment #7 from Alexander Vostres <alexx999@???> 2014-04-15 02:55:19 ---
This is not bug. Using code from description

[DllImport("pcre3.dll")]
private static extern void pcre_free(IntPtr re);


you're binding to function "pcre_free", while it's not a function, but a
pointer to function. Proper code can be seen in my project on github:

https://github.com/Alexx999/PcreSharp


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email