Can't break App execution by ctrl+c

Suliman via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Apr 27 05:17:12 PDT 2017


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.




More information about the Digitalmars-d-learn mailing list