Am Di., 22. Jan. 2019, 10:55 hat Alexander via fpc-devel < fpc-devel@lists.freepascal.org> geschrieben:
> Hi, > > I try use finalization in unit, but it not work. > > When press Ctrl+C and exit program uses this unit > PC-Speaker stay infinity play on interrupted tone. > When Ctrl+C use spkoff; in finalization section not called. You need to explicitly handle the SIGINT signal so that your program can terminate gracefully. The default behavior is to simply kill the program which means that the finalization sections won't run. Regards, Sven
_______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel