I create my own application. I use offreg.dll and I try save hive file. I have already tested my application with 2 different hive files. For one of them it works perfect (so I suppose my code does not contains mistakes and it works correctly), but
for another hive file I received Access Violation. I have analyzed dump and I received next call stack:
offreg!ORSerializeHive+49c
offreg!ORSaveHive+eb
clr!DoNDirectCall__PatchGetThreadCall+7b
0x000007ff`00140b52
0x000007ff`00140485
0x000007ff`00140169
clr!CallDescrWorker+84
clr!CallDescrWorkerWithHandler+a9
clr!MethodDesc::CallDescr+2a1
clr!ClassLoader::RunMain+228
As I understand something wrong with hive file. I have opened hive file with RawReg tool and It opened successfully, so how I can check this hive file and fix this problem?
I will be appreciated for any advice how solve the problem or investigate it.