TheMisiacz
Programmer
I am using Delphi5 and Interbase 6.x with IBX 4.52 (higher number has the same problem).
The problem is while i am scrolling TDBGrid, then server is shuting down and restart, it seems like something with select query problem ... this select looks like this one:
SELECT P1.PU_IDPOZPRZ, CAST(P1.PU_DATADOST AS DATE) AS DATADOST, CAST(P1.PU_DATADOST AS TIME)
AS GODZDOST, P1.PU_NETTO, P1.PU_BRUTTO, P1.PU_TARA, P1.PU_METODA, O1.OD_KOD, FrmKod(O1.OD_KOD) FrmKod, R1.*, K1.*, J1.* FROM REJESTR_PRZYWOZU R1, POZYCJA_PRZYWOZU P1, KONTRAHENT K1, POJAZD J1, ODPAD O1
WHERE RP_DOSTAWCA = KO_IDKONTRAHENT
AND RP_POJAZD = PD_IDPOJAZD
AND P1.PU_ODPAD=O1.OD_IDODPAD
AND PU_REJPRZ=RP_IDREJPRZ
AND PU_DATADOST=(SELECT MIN(PU_DATADOST) FROM POZYCJA_PRZYWOZU WHERE PU_REJPRZ=R1.RP_IDREJPRZ)
AND PU_POZPRZ IS NULL
No matter what it makes, but it operates on table with 5000 records now ... sometimes other error happens, "internal gds ... cannot start thread", or something like "... insufficient memory ...".
Please help, any suggestions?
The problem is while i am scrolling TDBGrid, then server is shuting down and restart, it seems like something with select query problem ... this select looks like this one:
SELECT P1.PU_IDPOZPRZ, CAST(P1.PU_DATADOST AS DATE) AS DATADOST, CAST(P1.PU_DATADOST AS TIME)
AS GODZDOST, P1.PU_NETTO, P1.PU_BRUTTO, P1.PU_TARA, P1.PU_METODA, O1.OD_KOD, FrmKod(O1.OD_KOD) FrmKod, R1.*, K1.*, J1.* FROM REJESTR_PRZYWOZU R1, POZYCJA_PRZYWOZU P1, KONTRAHENT K1, POJAZD J1, ODPAD O1
WHERE RP_DOSTAWCA = KO_IDKONTRAHENT
AND RP_POJAZD = PD_IDPOJAZD
AND P1.PU_ODPAD=O1.OD_IDODPAD
AND PU_REJPRZ=RP_IDREJPRZ
AND PU_DATADOST=(SELECT MIN(PU_DATADOST) FROM POZYCJA_PRZYWOZU WHERE PU_REJPRZ=R1.RP_IDREJPRZ)
AND PU_POZPRZ IS NULL
No matter what it makes, but it operates on table with 5000 records now ... sometimes other error happens, "internal gds ... cannot start thread", or something like "... insufficient memory ...".
Please help, any suggestions?