🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.nativeapi
Article #12110

Re: GetThreadContext returns invalid values

#12110
From: Michael Winter
Date: Sat, 23 Nov 2002 19:15
20 lines
1463 bytes
Max Burmistrov schrieb:
> 
> HI.
> 
> I use the following code:
> 
> <..>
> var
>  context: _context;
> begin
> GetThreadContext(GetCurrentThread, context)
> <..>
> So it should return current thread context, but all values are invalid.
> Context.EIP is much greater than one shown in CPU window (greater than
> $E1000000). What's wrong?

You cannot get a valid context for a running thread. Check the result
value.

-Michael
Technical Details
Message-ID: <3ddfd619@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-04!supernews.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!news.uni-x.net!newsgroups.borland.com!not-for-mail
References: <3ddfb320@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f94dd,334d5eef68190214
X-Google-Attributes: gidf94dd,public
X-Google-ArrivalTime: 2002-11-23 12:16:12 PST
Date: Sat, 23 Nov 2002 20:15:11 +0100
From: Michael Winter <delphi.net@gmx.net>
X-Mailer: Mozilla 4.51 [de]C-CCK-MCD QXW03200  (Win98; I)
X-Accept-Language: de,en
MIME-Version: 1.0
Newsgroups: borland.public.delphi.nativeapi
Subject: Re: GetThreadContext returns invalid values
References: <3ddfb320@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
User-Agent: Hamster/1.3.23.205
NNTP-Posting-Host: 145.254.196.6
Message-ID: <3ddfd619@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1038079513 145.254.196.6 (23 Nov 2002 11:25:13 -0800)
Lines: 20
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-04!supernews.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!news.uni-x.net!newsgroups.borland.com!not-for-mail