Hello, Guillaume

Please look at frmStatus::fillLogfileCombo(). Please note, that the set is defined and assigned, but then as it has not enough rows to be "interesting" the function returns 0 and exits. So "delete set;" is never called. Can this be the issue?

int frmStatus::fillLogfileCombo()
{
    int count = cbLogfiles->GetCount();
    if (!count)
        cbLogfiles->Append(_("Current log"));
    else
        count--;

    pgSet *set = connection->ExecuteSet(
                     wxT("SELECT filename, filetime\n")
wxT(" FROM pg_logdir_ls() AS A(filetime timestamp, filename text)\n")
                     wxT(" ORDER BY filetime DESC"));
    if (set)
    {
        if (set->NumRows() <= count)
            return 0;

--
Julius Tuskenis
Programavimo skyriaus vadovas
UAB nSoft
mob. +37068233050


--
Sent via pgadmin-support mailing list (pgadmin-support@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-support

Reply via email to