Club Delphi  
    FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Principal > Varios
Registrarse FAQ Miembros Calendario Guía de estilo Temas de Hoy

Grupo de Teaming del ClubDelphi

 
 
Herramientas Buscar en Tema Desplegado
  #1  
Antiguo 03-05-2006
kavisch kavisch is offline
Miembro
 
Registrado: jun 2005
Posts: 32
Poder: 0
kavisch Va por buen camino
Red face Mi aplicacion como un Service

Saludos,

He creado una aplicacion como un servicio en Delphi, File|New|Other|Application Service. Pero mi problema es que esta solo dura unos 15 seg. al ejecutarse, ademas trato de registrarlo y me da el siguiente error .

Windows cannot find "Miservicio.exe\INSTALL".

aqui les pogo mi codigo :

Cita:
procedure TMiniBarService.ServiceStart(Sender: TService;
var Started: Boolean);
begin
tEjecute.Enabled := True;
Application.Run;
end;
procedure TMiniBarService.tEjecuteTimer(Sender: TObject);
begin
while not Self.Terminated do
ServiceThread.ProcessRequests(True)
end;
procedure TMiniBarService.ServiceExecute(Sender: TService);
begin
while not Self.Terminated do
ServiceThread.ProcessRequests(True);// wait for termination
end;
procedure TMiniBarService.ServiceBeforeInstall(Sender: TService);
begin
Application.Run;
end;
procedure TMiniBarService.ServiceStop(Sender: TService;
var Stopped: Boolean);
begin
stopped:=true;
end;
Responder Con Cita
 



Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro

Temas Similares
Tema Autor Foro Respuestas Último mensaje
Undefined service gds_db/tcp StartKill Firebird e Interbase 7 10-05-2012 00:15:53
Ayuda !!!! Service Application Enan0 API de Windows 8 10-03-2009 19:36:16
Terminal Service y Delphi cafupe Internet 0 26-10-2004 01:42:30
!!!!Service application aram2r API de Windows 1 20-05-2004 13:09:06
Service y Application Service Ezecool Varios 0 30-09-2003 18:48:30


La franja horaria es GMT +2. Ahora son las 00:23:36.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi