[rrd-developers] C# binding broken?

Tobias Oetiker tobi at oetiker.ch
Fri Apr 15 14:14:17 CEST 2011

Hi Pellaeon,

I the c# bindings are contributed code, I have not heared from
anyone actively using them, so if you have improvements, just send
them over !


Today Pellaeon wrote:

> Hello,
> I use rrdlib 1.4.5 and tried to use the C# binding from the subversion. I
> compiled the DebugDLL of the rrdlib and compiled and started the
> "dnrrd_binding_test". When reaching the fetch function I get the following
> exception: System.AccessViolationException. Any idea? Seems there is an
> error in the binding!
> First I think the whole calling convention on the binding is wrong! C dlls
> use cdecl as standard, Dllimport of C# uses stdcall. But changing the
> calling convention in the C# class didn't solve the problem ([DllImport(dll,
> CallingConvention = CallingConvention.Cdecl)])
> Any ideas, clues? Perhaps there is a bug in the marshalling?
> Best regards
> Pellaeon
> --
> View this message in context: http://rrd-mailinglists.937164.n2.nabble.com/C-binding-broken-tp6275701p6275701.html
> Sent from the RRDtool Developers Mailinglist mailing list archive at Nabble.com.
> _______________________________________________
> rrd-developers mailing list
> rrd-developers at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-developers

Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch tobi at oetiker.ch ++41 62 775 9902 / sb: -9900

More information about the rrd-developers mailing list