Fórum memória insuficiente (diferente dos outros problemas citados #289389
25/07/2005
0
Por que está dando erro de memória insuficiente no código abaixo?
Não consigui achar o erro... Não está criando nada sem dar free...
Quem puder me ajudar...
Grato
while ( ADOQueryImport.Eof = False ) do
begin
sqlCommand := ´INSERT INTO TC6_POST_TARIFF ....)
ADOQuerySystem.SQL.Add( sqlCommand );
sqlCommand := ´´;
inc(regCount);
if ( regCount mod 100 = 0 ) then begin
ADOQuerySystem.SQL.Add(´END;´);
ADOQuerySystem.ExecSQL;
ExecutaCommit;
Application.ProcessMessages;
Memo1.Lines.Add( ´Importados ´ + IntToStr( regCount )+ ´ registros´ );
ADOQuerySystem.SQL.Clear;
ADOQuerySystem.SQL.Add(´BEGIN´);
end;
Gauge1.AddProgress(1);
ADOQueryImport.Next;
end;
Não consigui achar o erro... Não está criando nada sem dar free...
Quem puder me ajudar...
Grato
while ( ADOQueryImport.Eof = False ) do
begin
sqlCommand := ´INSERT INTO TC6_POST_TARIFF ....)
ADOQuerySystem.SQL.Add( sqlCommand );
sqlCommand := ´´;
inc(regCount);
if ( regCount mod 100 = 0 ) then begin
ADOQuerySystem.SQL.Add(´END;´);
ADOQuerySystem.ExecSQL;
ExecutaCommit;
Application.ProcessMessages;
Memo1.Lines.Add( ´Importados ´ + IntToStr( regCount )+ ´ registros´ );
ADOQuerySystem.SQL.Clear;
ADOQuerySystem.SQL.Add(´BEGIN´);
end;
Gauge1.AddProgress(1);
ADOQueryImport.Next;
end;
Del
Curtir tópico
+ 0
Responder
Posts
26/07/2005
Del
Obrigado para quem tentou me ajudar.
Tirei o Gauge, setei o cursor do AdoConnection para Server e funcionou.
Obrigado.
Del
Tirei o Gauge, setei o cursor do AdoConnection para Server e funcionou.
Obrigado.
Del
Responder
Gostei + 0
28/07/2005
Del
:(
Pessoal, voltou a dar erro.
Alguém pode me ajudar?
O intrigante é que tenho uma rotina exatamente igual para outra tabela acima que roda normalmente.
(leio de uma tabela do access para importar para O Oracle 9i).
Pessoal, voltou a dar erro.
Alguém pode me ajudar?
O intrigante é que tenho uma rotina exatamente igual para outra tabela acima que roda normalmente.
(leio de uma tabela do access para importar para O Oracle 9i).
Responder
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)