c# - I want to use a time out in my mini program -


i have mini program read excel file. well, sometimes, program doesn't work , keep remaining nothing. so, want catch this, , if program delay more 5 minutes, want stop process.

so, how can ?

i try this, doesn't work

 atimer = new system.timers.timer(2000);  atimer.enabled = true;  atimer.start();    read_file(f, sdir, pathout, pathlogout); 


Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -