When i try release a objetMannager (FreeAndNil(FRepeatableReadManager)), the follow erro is returned:
"First chance exception at $00007FFE8DD64F99. Exception class EInvalidPointer with message 'Invalid pointer operation'. Process InformServerXD.exe (5808);"
I already try find some nil object with a code like:
THackManager = class(TObjectManager)
end;
// usar métodos hack:
var HackedManager: THackManager;
begin
HackedManager := THackManager(TObjectManager);
AllObjects := HackedManager.ObjectMap.GetList;
for i := 0 to AllObjects.Count -1 do
begin
if AllObjects[i] = nil then
raise Exception.Create('Error Message');
end;
but no nil object was finded.
How can i find the object with problem?
call stack:
:00007FFE8DD64F99 ; C:\Windows\System32\KERNELBASE.dll
System._RaiseAtExcept(???,???)
System.SysUtils.ErrorHandler(???,$4098B2)
System.ErrorAt(2,$4098B2)
System.Error(???)
System._FreeMem(???)
System.TObject.FreeInstance
System._ClassDestroy(???)
System.TObject.Destroy
System.TObject.Free
Aurelius.Engine.ObjectMap.TObjectMap.Clear(True)
Aurelius.Engine.ObjectManager.TObjectManager.Clear
Aurelius.Engine.ObjectManager.TObjectManager.Destroy
System.TObject.Free
Database.Context.TDatabaseContext.Destroy
System.TObject.Free
Database.Context.TDatabaseContext.FreeContext
Middleware.Context.TContextMiddleware.ProcessRequest($113BE450,Pointer($FEA7790) as THttpServerProc)
Sparkle.HttpServer.Module.THttpServerMiddleware.MiddlewareFunc$20$ActRec.$0$Body($113BE450)
Sparkle.HttpServer.Module.TBaseHttpServerModule.Execute($113BE450)
Sparkle.HttpServer.Dispatcher.THttpDispatcher.ProcessRequest($113BE450)
Sparkle.HttpServer.Dispatcher.THttpDispatcher.DispatchRequest($113BE450)
Sparkle.HttpSys.Server.TCustomHttpSysServer.DoProcessRequest($113BE450)
Sparkle.HttpSys.Server.TCustomHttpSysServer.WorkItemCallBack($FE81990)
Sparkle.Sys.ThreadPool.WorkItemFunction($FEA75F0)
:00007FFE903DFBC3 ;
:00007FFE903C315A ;
:00007FFE90127034 ; C:\Windows\System32\KERNEL32.DLL
:00007FFE903C2651 ;