Hello all,
I'd like to know what I'm doing wrong (certenly I'm doing something wrong). Here is a problem described:
- I have a OnTimer event (TTimer component) defined like this:
MySQLQuery.SQL.Text := 'SELECT CVSKEY FROM CVS WHERE CVSCID=' + IntToStr(ChannelID) + ' AND CVSNBR IS NULL';
MySQLQuery.Open;
CallID := MySQLQuery.Fields[0].AsInteger;
MySQLQuery.Close;
the interval of TTimer is 2000ms. My problem is that after ex. 12 hours of working my application memory usage is very high (over 100MB). What should i free (or something) on each interval? Is there a better way to do select to db?
Thanks in advance,
Mike