public Out123(string pluginFolder = "./plugins") { System.Environment.SetEnvironmentVariable("MPG123_MODDIR", pluginFolder); handle = Out123NativeMethods.New(); if (handle == IntPtr.Zero) { System.Environment.SetEnvironmentVariable("MPG123_BINDIR", ""); //remove env variable throw new Out123.ErrorException("Unable to initialize lib Out123"); } }