Article View: borland.public.cppbuilder.nativeapi
Article #14081Calling a function from ServiceExecute.
From: MWP
Date: Tue, 26 Aug 2003 11:12
Date: Tue, 26 Aug 2003 11:12
29 lines
1712 bytes
1712 bytes
Hi all...
Sorry if ive asked this in the wrong spot.
Im trying to call a function in another unit that does the bulk of the work for this application.
This is a screen cap of the ASM where the error occours:
http://www.overclockers.com.au/~mwp/temp/asm_err.gif
The exception occours on the "lea edx, None" line.
The code is below.
Any ideas as to whats causing this?
Thanks for any help.
//---------------------------------------------------------------------------
void __fastcall TCC2Service::ServiceExecute(TService *Sender)
{
//for debug
Sleep(8000);
//run the service
execute_cc2(&Terminated, ServiceThread);
}
//---------------------------------------------------------------------------
where execute_cc2 is:
void execute_cc2(bool *Terminated, TServiceThread *Thread);
Technical Details
Message-ID:
<3f4b40bb$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,cccee033616271b2,start X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-08-26 04:24:02 PST From: "MWP" <mwp@overclockers.com.au> Sender: "MWP" <mwp@overclockers.com.au> Reply-To: "MWP" <mwp@overclockers.com.au> Subject: Calling a function from ServiceExecute. Newsgroups: borland.public.cppbuilder.nativeapi X-User-Info: 203.20.76.8 203.20.76.8 X-Forwarded-For: unknown NNTP-Posting-Host: 207.105.83.65 Message-ID: <3f4b40bb$1@newsgroups.borland.com> Date: 26 Aug 2003 04:12:59 -0700 X-Trace: newsgroups.borland.com 1061896379 207.105.83.65 (26 Aug 2003 04:12:59 -0700) Lines: 30 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail