Discussion:
Access violation at address 77F8AA57 in module ntdll.dll
Jatin N. Bhoir
2003-06-23 13:47:32 UTC
Permalink
Dear All,

I get the following error when I shut down my program in IDE
"Exception in module ntdll.dll. Access violation at address 77F8AA57 in module 'ntdll.dll'."

Using Delphi 7, Win2k Prof.

I have a multi-threaded application. And it raises AV when executing Thread.WaitFor. Does this have to do anything with NT based Thread manipulation ? I have no idea.

I tried searching this problem on this group's archives, but i cant find a solution yet.

Can anybody help me ?

Warm regards,
Jatin N. Bhoir


[Non-text portions of this message have been removed]


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Looking for the latest Free IT White Papers?
Visit SearchNetworking.com to access over 500 white papers.
Get instant access at SearchNetworking.com Today
http://us.click.yahoo.com/8lAzoD/OLNGAA/witMAA/i7folB/TM
---------------------------------------------------------------------~->

Delphi Tips & Tutorials...
http://www.delphicollection.com
---------------------------------------------------------------
Unsubscribe:delphi-programming-***@yahoogroups.com
List owner:delphi-programming-***@yahoogroups.com
---------------------------------------------------------------

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Andre du Plessis
2003-06-24 00:10:39 UTC
Permalink
This is definitely not common behavior on any of the NT platforms, it
sounds like your thread handle might be invalid, is your TThread class
set to freeOnTerminate := true
If so then maybe the thread is actually freeing itself before you call
waitfor

That is all I can think.

-----Original Message-----
From: Jatin N. Bhoir [mailto:***@mindteck.com]
Sent: Monday, June 23, 2003 6:48 AM
To: Delphi Programming
Subject: [Delphi] Access violation at address 77F8AA57 in module
ntdll.dll

Dear All,

I get the following error when I shut down my program in IDE
"Exception in module ntdll.dll. Access violation at address 77F8AA57 in
module 'ntdll.dll'."

Using Delphi 7, Win2k Prof.

I have a multi-threaded application. And it raises AV when executing
Thread.WaitFor. Does this have to do anything with NT based Thread
manipulation ? I have no idea.

I tried searching this problem on this group's archives, but i cant find
a solution yet.

Can anybody help me ?

Warm regards,
Jatin N. Bhoir


[Non-text portions of this message have been removed]



Delphi Tips & Tutorials...
http://www.delphicollection.com
---------------------------------------------------------------
Unsubscribe:delphi-programming-***@yahoogroups.com
List owner:delphi-programming-***@yahoogroups.com
---------------------------------------------------------------

Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Looking for the latest Free IT White Papers?
Visit SearchMobileComputing.com to access over 500 white papers.
Get instant access at SearchMobileComputing.com Today
http://us.click.yahoo.com/9lAzoD/PLNGAA/witMAA/i7folB/TM
---------------------------------------------------------------------~->

Delphi Tips & Tutorials...
http://www.delphicollection.com
---------------------------------------------------------------
Unsubscribe:delphi-programming-***@yahoogroups.com
List owner:delphi-programming-***@yahoogroups.com
---------------------------------------------------------------

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
saigonij
2003-06-24 14:55:36 UTC
Permalink
I think the thread is a red herring.

this happens mainly on win2k machine because of a problem with the VCL. i cant remember where is it now, but it comes down to a call to the function "Getlenth" or something simular. Basically, the VCL sends the api call a string of "" ( null ) when trying to get the length of the string to place as the text.

the problem is cause by a combobox with no items in the lines property.

search on the borland code central where you will find a solution to this.

if not, email me back and ill send you the code patch.

ian

Andre du Plessis <***@infocare.co.za> wrote:
This is definitely not common behavior on any of the NT platforms, it
sounds like your thread handle might be invalid, is your TThread class
set to freeOnTerminate := true
If so then maybe the thread is actually freeing itself before you call
waitfor

That is all I can think.

-----Original Message-----
From: Jatin N. Bhoir [mailto:***@mindteck.com]
Sent: Monday, June 23, 2003 6:48 AM
To: Delphi Programming
Subject: [Delphi] Access violation at address 77F8AA57 in module
ntdll.dll

Dear All,

I get the following error when I shut down my program in IDE
"Exception in module ntdll.dll. Access violation at address 77F8AA57 in
module 'ntdll.dll'."

Using Delphi 7, Win2k Prof.

I have a multi-threaded application. And it raises AV when executing
Thread.WaitFor. Does this have to do anything with NT based Thread
manipulation ? I have no idea.

I tried searching this problem on this group's archives, but i cant find
a solution yet.

Can anybody help me ?

Warm regards,
Jatin N. Bhoir


[Non-text portions of this message have been removed]



Delphi Tips & Tutorials...
http://www.delphicollection.com
---------------------------------------------------------------
Unsubscribe:delphi-programming-***@yahoogroups.com
List owner:delphi-programming-***@yahoogroups.com
---------------------------------------------------------------

Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/




Delphi Tips & Tutorials...
http://www.delphicollection.com
---------------------------------------------------------------
Unsubscribe:delphi-programming-***@yahoogroups.com
List owner:delphi-programming-***@yahoogroups.com
---------------------------------------------------------------

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/



---------------------------------
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

[Non-text portions of this message have been removed]


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Looking for the latest Free IT White Papers?
Visit SearchNetworking.com to access over 500 white papers.
Get instant access at SearchNetworking.com Today
http://us.click.yahoo.com/8lAzoD/OLNGAA/witMAA/i7folB/TM
---------------------------------------------------------------------~->

Delphi Tips & Tutorials...
http://www.delphicollection.com
---------------------------------------------------------------
Unsubscribe:delphi-programming-***@yahoogroups.com
List owner:delphi-programming-***@yahoogroups.com
---------------------------------------------------------------

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Jatin N. Bhoir
2003-06-25 05:32:06 UTC
Permalink
Hi,

Thanx for your pointer Andre,

I think it has something to do with freeing of threads. This exception
occurs, ONLY when i have one of the parameter enabled. I have to dig into
this code and fetch what exactly happens when this Parameter is enabled.
This paremter is closely related to Thread. So i guess, Thread must be
getting terminated somewhere in between and then this WaitFor code tries to
execute.

I could tell that it was 'Trying to access a component that was not
initialised', which is what AV means to me.

But i still have to figure out what is going wrong and where.
Wish me good luck <g>
Thanx and warm regards,
Jatin

----- Original Message -----
From: "saigonij" <***@yahoo.com>
To: <delphi-***@yahoogroups.com>
Sent: Tuesday, June 24, 2003 8:25 PM
Subject: RE: [Delphi] Access violation at address 77F8AA57 in module
ntdll.dll
Post by saigonij
I think the thread is a red herring.
this happens mainly on win2k machine because of a problem with the VCL. i
cant remember where is it now, but it comes down to a call to the function
"Getlenth" or something simular. Basically, the VCL sends the api call a
string of "" ( null ) when trying to get the length of the string to place
as the text.
Post by saigonij
the problem is cause by a combobox with no items in the lines property.
search on the borland code central where you will find a solution to this.
if not, email me back and ill send you the code patch.
ian
This is definitely not common behavior on any of the NT platforms, it
sounds like your thread handle might be invalid, is your TThread class
set to freeOnTerminate := true
If so then maybe the thread is actually freeing itself before you call
waitfor
That is all I can think.
-----Original Message-----
Sent: Monday, June 23, 2003 6:48 AM
To: Delphi Programming
Subject: [Delphi] Access violation at address 77F8AA57 in module
ntdll.dll
Dear All,
I get the following error when I shut down my program in IDE
"Exception in module ntdll.dll. Access violation at address 77F8AA57 in
module 'ntdll.dll'."
Using Delphi 7, Win2k Prof.
I have a multi-threaded application. And it raises AV when executing
Thread.WaitFor. Does this have to do anything with NT based Thread
manipulation ? I have no idea.
I tried searching this problem on this group's archives, but i cant find
a solution yet.
Can anybody help me ?
Warm regards,
Jatin N. Bhoir
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Looking for the latest Free IT White Papers?
Visit SearchSecurity.com to access over 500 white papers.
Get instant access at SearchSecurity.com Today
http://us.click.yahoo.com/.lAzoD/QLNGAA/witMAA/i7folB/TM
---------------------------------------------------------------------~->

Delphi Tips & Tutorials...
http://www.delphicollection.com
---------------------------------------------------------------
Unsubscribe:delphi-programming-***@yahoogroups.com
List owner:delphi-programming-***@yahoogroups.com
---------------------------------------------------------------

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Loading...