Ver Mensaje Individual
  #1  
Antiguo 27-10-2006
chona chona is offline
Miembro
 
Registrado: abr 2004
Posts: 57
Reputación: 21
chona Va por buen camino
Question access violation

Hola amigos, tengo un proble con delphi 5, es que tengo un edit con el siguiente código

Código Delphi [-]
procedure Tfconsulta.Edit2Change(Sender: TObject);
begin
TRY
     fconsulta.QryGRILLA.Close;
     fconsulta.QryGRILLA.SQL.Text:='select id, servicio, precio from  carta where servicio like ''' + edit2.Text+'%' + ''' order by servicio';
     fconsulta.QryGRILLA.ExecSQL;
     fconsulta.QryGRILLA.Open;
except on exception do
   begin
    end
   end;//try
end;

el problema es que escribo y borro en el edit2 varias veces y salta el siguiente error

Código:
Proyect E:\Desarrollos\Comedor.exe faulted witch message: 'access violation at 0x7c9477c9: write of address 0x00030ff00'. Process Stopped. Use Step or Run to continue
me podría decir alguien que está ocurriendo??
Desde muchísimas gracias!!!
Responder Con Cita