 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
david gress Guest
|
Posted: Thu Aug 24, 2006 6:24 pm Post subject: Windows service get Access Violation |
|
|
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
|
Posted: Wed Aug 30, 2006 12:15 am Post subject: Re: Windows service get Access Violation |
|
|
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 |
|
 |
|
|
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
|
|