Kernelbase.dll expeptions

Hi,
I am trying to build a new pluging but I am getting lots of expeptions in the immediate window:

Exception thrown at 0x00007FFCF0D6CF19 (KernelBase.dll) in Rhino.exe: 0xE0434352 (parameters: 0xFFFFFFFF80131430, 0x0000000000000000, 0x0000000000000000, 0x0000000000000000, 0x00007FFCA8280000).
Exception thrown at 0x00007FFCF0D6CF19 (KernelBase.dll) in Rhino.exe: 0xE0434352 (parameters: 0xFFFFFFFF80004005, 0x0000000000000000, 0x0000000000000000, 0x0000000000000000, 0x00007FFCA8280000).Exception thrown at 0x00007FFCF0D6CF19 in Rhino.exe: Microsoft C++ exception: asw::registry::exceptions::key_not_exists at memory location 0x00000023B1CFC080.Exception thrown at 0x00007FFCF0D6CF19 in Rhino.exe: Microsoft C++ exception: EEFileLoadException at memory location 0x00000023B0506A20.
Exception thrown at 0x00007FFCF0D6CF19 in Rhino.exe: Microsoft C++ exception: [rethrow] at memory location 0x0000000000000000.
Exception thrown at 0x00007FFCF0D6CF19 in Rhino.exe: Microsoft C++ exception: EEFileLoadException at memory location 0x00000023B0506A20.
Exception thrown at 0x00007FFCF0D6CF19 in Rhino.exe: Microsoft C++ exception: wil::ResultException at memory location 0x00000023B263C910.Exception thrown at 0x00007FFCF0D6CF19 in Rhino.exe: Microsoft C++ exception: asw::registry::exceptions::key_not_exists at memory location 0x000000102E57C2A0.

I have tried repairing Rhino 7, copying KernelBase.dll from other window 10 installation, updating windows 10 but nothing so far. I don’t remember having these messages earlier, what could have caused them? Are there any suggestions of how to fix it?
Thanks!

Don’t do this - you might hose up your Windows installation.

What version of Rhino 7 are you running? Can you run the SystemInfo command and post the results?

What version of Visual Studio are you using?

Are you writing a plug-in in C++ or C#? You might consider posting your plug-in project here.

– Dale

Replacing the dlls did not help, so I restored the original ones back. After some research I realised that KernelBase.dll exceptions could be the symptom but not the actual problem (which by the way I haven’t found yet.)

I am running the latest Rhino 7 version (I updated everything just in case)
The actual plugin (it’s in C++) does not reallly matter because even if I create a new completely empty C++ plug in via the wizard I get exactly the same exceptions.

I am attaching you the SystemInfo, any suggestions?
systeminfo.txt (1.1 MB)

What version of Rhino 7 are you running?

Can you run Rhino’s SystemInfo command and post the results?

What version of Visual Studio are you using?

Are you writing a plug-in in C++ or C#? You might consider posting your plug-in project here.

Rhino 7 SR29 2023-4-17 (Rhino 7, 7.29.23107.03001)

I use VS2019, but just to be sure I installed VS2022 and I got the same exceptions

C/C++, even creating an empty plugin gives exactly the same exceptions

Rhino 7 SR29 2023-4-17 (Rhino 7, 7.29.23107.03001, Git hash:master @ 5f05ef3a2eea3d910c4c2fb79ccc75b413d33ca7)
License type: Commercial, build 2023-04-17
License details: QWERTY

Windows 10 (10.0.19045 SR0.0) or greater (Physical RAM: 16Gb)

Computer platform: DESKTOP 

Standard graphics configuration.
  Primary display and OpenGL: NVIDIA GeForce RTX 3050 (NVidia) Memory: 8GB, Driver date: 4-25-2023 (M-D-Y). OpenGL Ver: 4.6.0 NVIDIA 531.79
    > Accelerated graphics device with 4 adapter port(s)
        - Windows Main Display attached to adapter port #0
        - Secondary monitor attached to adapter port #1

OpenGL Settings
  Safe mode: Off
  Use accelerated hardware modes: On
  Redraw scene when viewports are exposed: On
  Graphics level being used: OpenGL 4.6 (primary GPU's maximum)
  
  Anti-alias mode: 4x
  Mip Map Filtering: Linear
  Anisotropic Filtering Mode: High
  
  Vendor Name: NVIDIA Corporation
  Render version: 4.6
  Shading Language: 4.60 NVIDIA
  Driver Date: 4-25-2023
  Driver Version: 31.0.15.3179
  Maximum Texture size: 32768 x 32768
  Z-Buffer depth: 24 bits
  Maximum Viewport size: 32768 x 32768
  Total Video Memory: 8 GB

Rhino plugins that do not ship with Rhino
  C:\Users\QWERTY\Desktop\RHINO\code\----------------------------------------------------------------
  C:\Users\QWERTY\Desktop\RHINO\----------------------------------------------------------------
  C:\Users\QWERTY\AppData\Roaming\McNeel\Rhinoceros\packages\7.0\ColorPicker\6.0.0\ColorPicker.rhp	"ColorPicker"	

Rhino plugins that ship with Rhino
  C:\Program Files\Rhino 7\Plug-ins\Commands.rhp	"Commands"	7.29.23107.3001
  C:\Program Files\Rhino 7\Plug-ins\rdk.rhp	"Renderer Development Kit"	
  C:\Program Files\Rhino 7\Plug-ins\rdk_etoui.rhp	"RDK_EtoUI"	7.29.23107.3001
  C:\Program Files\Rhino 7\Plug-ins\rdk_ui.rhp	"Renderer Development Kit UI"	
  C:\Program Files\Rhino 7\Plug-ins\NamedSnapshots.rhp	"Snapshots"	
  C:\Program Files\Rhino 7\Plug-ins\Toolbars\Toolbars.rhp	"Toolbars"	7.29.23107.3001
  C:\Program Files\Rhino 7\Plug-ins\3dxrhino.rhp	"3Dconnexion 3D Mouse"	
  C:\Program Files\Rhino 7\Plug-ins\Displacement.rhp	"Displacement"

My third request…

PlugIn1PlugIn.cpp (5.1 KB)
cmdPlugIn1.cpp (3.6 KB)
stdafx.cpp (207 Bytes)
PlugIn1App.cpp (1.8 KB)

any updates on this issue?

Hi @fatecasino,

I have not look at this because you never posted your project - only a couple of source files. If you want help, please post the complete project, which includes a .vcxproj file, .h/cpp files, etc. If you don’t know what files to include, then best to zip the entire folder…

– Dale

When I try to upload a .h or a .vcxproj file I get the following error:

Sorry, the file you are trying to upload is not authorized (authorized extensions: dwg, dxf, zip, 7z, igs, stp, step, rhp, gh, gha, ghx, py, rvb, rui, txt, pdf, png, jpg, jpeg, gif, rmtl, renv, 3dm, rtex, ini, xml, mp4, mov, macrhi, rar, ghpy, cs, cpp, plist, skp, dgn, 3mf, rhi, dae, ghuser, ghcluster, obj, fbx, stl, svg, 3ds, rws, ai, sat, amf, x, cd, e57, emf, eps, off, gf, gts, iges, kmz, html, iris, lwo, udo, scn, iv, csv, x_t, ply, pts, xyz, raw, slc, sldprt, sldasm, vda, vrml, wrl, gdf, wmf, x3dv, xaml, xgl, zpr, rfa, rvt, rte, json, whl, val, epw, ghz, ghz, rhw, exr, gltf, glb, rhc).

:point_up:

PlugIn1.zip (12.6 KB)

This seems to work here:

PlugIn1.zip (6.1 MB)

– Dale

There must be some problem with Rhino installation. I am using a separate clean win10 installation just for Rhino SDK and I am getting all these exceptions all the time no matter what I build. Even if I run the default plugin I sent you I am still getting exceptions. VS, Rhino, win10, Nvidia drivers are all up to date.