From ea228677dbae395cd5232fb88c248067fb73c2ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20M=C3=B6ller?= Date: Tue, 18 May 2010 19:16:55 +0000 Subject: [PATCH] Fixed an EntryPointNotFoundException in the NVAPI wrapper: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit System.EntryPointNotFoundException: Não é possível localizar um ponto de entrada denominado 'nvapi_QueryInterface' na DLL 'nvapi.dll'. em PInvokeDelegateFactoryInternalWrapperType38.nvapi_QueryInterface(UInt32 id) em OpenHardwareMonitor.Hardware.Nvidia.NVAPI.GetDelegate[T](UInt32 id, T& newDelegate) em OpenHardwareMonitor.Hardware.Nvidia.NVAPI..cctor() --- Hardware/Nvidia/NVAPI.cs | 1 + Properties/AssemblyInfo.cs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Hardware/Nvidia/NVAPI.cs b/Hardware/Nvidia/NVAPI.cs index 410182d..970255c 100644 --- a/Hardware/Nvidia/NVAPI.cs +++ b/Hardware/Nvidia/NVAPI.cs @@ -236,6 +236,7 @@ namespace OpenHardwareMonitor.Hardware.Nvidia { try { GetDelegate(0x0150E828, out NvAPI_Initialize); } catch (DllNotFoundException) { return; } + catch (EntryPointNotFoundException) { return; } catch (ArgumentNullException) { return; } if (NvAPI_Initialize() == NvStatus.OK) { diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index c54485f..7fe2346 100644 --- a/Properties/AssemblyInfo.cs +++ b/Properties/AssemblyInfo.cs @@ -69,5 +69,5 @@ using System.Runtime.InteropServices; // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("0.1.34.0")] -[assembly: AssemblyFileVersion("0.1.34.0")] +[assembly: AssemblyVersion("0.1.35.0")] +[assembly: AssemblyFileVersion("0.1.35.0")]