Ahoj,
co se stane, pokud v jedné aplikaci opakovaně zavolám Init_libMPSSE()?
Import funkcí z libMPSSE.dll vypadá takto:
[DllImport("libMPSSE.dll", CallingConvention = CallingConvention.Cdecl)]
protected static extern void Init_libMPSSE();
[DllImport("libMPSSE.dll", CallingConvention = CallingConvention.Cdecl)]
protected static extern void Cleanup_libMPSSE();
[DllImport("libMPSSE.dll", CallingConvention = CallingConvention.Cdecl)]
protected static extern States FT_WriteGPIO(IntPtr handle, byte dir, byte value);
[DllImport("libMPSSE.dll", CallingConvention = CallingConvention.Cdecl)]
protected static extern States FT_ReadGPIO(IntPtr handle, ref byte value);
hu