Before my code handle empty result in `catch` block. Then I moved it's checking to main loop, and now I can't abort App execution by ctrl+c. It's simply continue working.

Here is my code:

        foreach(cargpspoint; cargpspoints)
        {
                auto cmd_dist = new PGCommand(pgconnection, sql_query));
                try
                {
                 auto nresult = cmd_dist.executeQuery();
                 auto nanswer = nresult.array;
                 nresult.close();
                if(nanswer.empty)
                {
                 continue;
                }

        }

OS: Windows.


Reply via email to