I am developing a C# Winforms CMS application which maintains data in an Access database via OleDb and posts elements of it to a web backend. My issue seems to be the same as the one found here: SO question on tracing a 'module not found' error in that I too run my application then it bombs out after about 20 seconds with the 'module not found' error.
I can't identify anything that I have changed in the code that could have triggered this; I've basically been working on refining the population of a list in a form with data retrieved from the db - something I've been doing extensively throughout development - and besides the occasional application crash which I've "solved" by restarting VS2022, things have been going OK. No new classes have been created prior to the onset of the issue.
The crash seems to be entirely time driven - i.e. it makes no difference what I do in the UI. A "catch all" try...catch
in Program.cs does not catch any exception.
The searches that I have done with the error number seem to reference an issue with Kernelbase.dll but alas I am sufficiently unskilled to establish how/where my code references this library. A contributor to the referenced question suggests "capture a crash dump and analyze it with WinDbg", but (having read the MS page on getting started with WinDbg) I literally have no idea how I would do this, or what I would be looking for.
On the advice found on an MS forum, I ran "sfc /SCANNOW
" which "found corrupt files and successfully repaired them". This had no apparent impact on the issue.
Please could you point me in the direction where I might find out what is going on and how to fix it?
Z
PS/ This may be the same error as described here too - but I'm not explicitly/knowingly calling any new dll, nor working in c++.