Software Archive
Read-only legacy content
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17060 Discussions

Catch a control-break in a console app

Intel_C_Intel
Employee
368 Views
I have a console app that accesses database routines in a dll. Before the program terminates I need to call a routine in the dll to de-initialize and close database connections. When a user breaks out of the program using Control-break I don't get a chance to call the routine and end up with an access violation. Is there a way to catch or prevent control-breaks before the program is terminated?
0 Kudos
0 Replies
Reply