Ver Mensaje Individual
  #1  
Antiguo 13-04-2011
satelier.martin satelier.martin is offline
Miembro
NULL
 
Registrado: mar 2011
Posts: 10
Reputación: 0
satelier.martin Va por buen camino
No se ejecuta el Destroy

Hola a todos aqui tengo un problema el cual no puedo encontrar la solucion.

Tengo este programa:
Código Delphi [-]
program L2exe;

uses Forms,ShellAPI,Windows,TLHelp32,SysUtils,Messages;

type
  TL2exe = class(TObject)
    constructor Create; virtual;
    destructor Destroy; override;
   private
  end;

constructor TL2exe.Create;
begin
  Application.MessageBox('create','Error', MB_ICONEXCLAMATION);
  inherited Create;
end;

destructor TL2exe.Destroy;
begin
  Application.MessageBox('se cerro','Error', MB_ICONEXCLAMATION);
  inherited Destroy;
end;

{$R *.res}
begin
  TL2exe.Create;
  Application.MessageBox('antes del call procces','Error', MB_ICONEXCLAMATION);
  Application.Terminate;
  end;
end.


Ejecuta bien el constructor, pero al terminar o terminar el proceso desde el administrador de windows no ejecuta el destroy. Estoy haciendo algo mal ??

Cualquier ayuda para orientarme es bienvenida.
Saludos.

Última edición por ecfisa fecha: 13-04-2011 a las 02:12:31. Razón: Agregar ETIQUETAS [DELPHI] y [/DELPHI]
Responder Con Cita