BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Windows service get Access Violation

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Deployment
View previous topic :: View next topic  
Author Message
david gress
Guest





PostPosted: Thu Aug 24, 2006 6:24 pm    Post subject: Windows service get Access Violation Reply with quote



I have a Windows service written and compiled in Delphi 6 that runs OK on Windows 2000 Server, but gets an Access violation in Win 2003 Server. The application uses stdvcl40.dll and WebBrokerScript.tlb which are register with tregsvr.exe.

Are there any docs on converting this app to work on 2k3 server? Would re-compiling in a later version of Delphi help? I noticed on Delphi 7 that WebBrokerScript.tlb is not included. Is there a replacement for that file?

TIA, Dave
Back to top
Graham Neden
Guest





PostPosted: Wed Aug 30, 2006 12:15 am    Post subject: Re: Windows service get Access Violation Reply with quote



Hello,

When you create a service application in BDS2006 you get the text below
inserted in the DPR file. Is it relevant to your service?

Regards,

Graham

// Windows 2003 Server requires StartServiceCtrlDispatcher to be
// called before CoRegisterClassObject, which can be called indirectly
// by Application.Initialize. TServiceApplication.DelayInitialize allows
// Application.Initialize to be called from TService.Main (after
// StartServiceCtrlDispatcher has been called).
//
// Delayed initialization of the Application object may affect
// events which then occur prior to initialization, such as
// TService.OnCreate. It is only recommended if the ServiceApplication
// registers a class object with OLE and is intended for use with
// Windows 2003 Server.
//
// Application.DelayInitialize := True;
//
if not Application.DelayInitialize or Application.Installing then
Application.Initialize;
Application.CreateForm(TIsisFileIngestService, IsisFileIngestService);
Application.Run;



"david gress" <david.gress (AT) dot (DOT) gov> wrote in message
news:44eda89c$1 (AT) newsgroups (DOT) borland.com...
Quote:

I have a Windows service written and compiled in Delphi 6 that runs OK on
Windows 2000 Server, but gets an Access violation in Win 2003 Server. The
application uses stdvcl40.dll and WebBrokerScript.tlb which are register
with tregsvr.exe.

Are there any docs on converting this app to work on 2k3 server? Would
re-compiling in a later version of Delphi help? I noticed on Delphi 7 that
WebBrokerScript.tlb is not included. Is there a replacement for that file?

TIA, Dave
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Deployment All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.