Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Aug : Re: 'ntdll.dll' problem
| Subject: | Re: 'ntdll.dll' problem |
| Posted by: | "Remy Lebeau (TeamB)" (no.spam@no.spam.com) |
| Date: | Fri, 18 Aug 2006 12:56:47 |
"mustafa korkmaz" <sekendizpasa@yahoo.com> wrote in message
news:44e617e4$1@newsgroups.borland.com...
> procedure TMyManagerThread.addlist(obje: tobject);
> begin
> EnterCriticalSection( listkritik );
> try
> try
> Managerlist.Add( obje );
> except on e:exception do
> begin
> .......
> end;
> end;
> finally
> LeaveCriticalSection( listkritik );
> end;
> end;
FYI, you can simplify that by using a TThreadList instead.
> ManagerThreads[ Tperson( Athread.data ).roomNumber ].addlist(
MyClass );
You did not show where ManagerThreads is allocated and filled in, how the
roomNumber is assigned, or where listkritik is instantiated. A problem in
any of those operations can cause unexpected problems later on.
> What may be source of the problem?
There is not enough details yet to diagnose that.
> Why ntdll.dll?
Because you did something that ultimately ended up calling an API function
inside of the DLL that then accessed invalid memory, throwing the exception.
Gambit
none