G
G
Gibbon Cho2014-09-05 12:32:43
C++ / C#
Gibbon Cho, 2014-09-05 12:32:43

Why does the application hang on the remote machine when disconnected from the latter?

There is an application, multi-threaded, written in C ++. Written in Embarcadero RAD Studio 2010. The form has a TTimer component that executes queries against a local MySQL database on the same remote machine. When I run the software and look at it, everything works fine. As soon as you hide or disconnect from the remote machine, the software immediately starts to hang (the displayed form is updated every 20 seconds approximately) or even "The application is not responding". At the same time, work with the MySQL database is also suspended. Such nonsense lasts until the program is turned off and restarted. After stopping and starting the application, the problem does not disappear. I connect via mstsc. The remote OS is windows 2008 r2, but I think it doesn’t really matter because the same thing happens remotely with OS 7 and windows 2003.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
X
xandox, 2014-09-05
@xandox

run through task scheduler

A
alloe, 2014-09-06
@alloe

gibboncho, how can I contact you? I have a couple of questions about your software

A
AxisPod, 2014-09-10
@AxisPod

Well, either there are demons in your software, so you need to expel them. Or at least visit a fortune teller. Before posting a question, imagine yourself in the place of those who will read the question and try to think whether you can answer this question yourself and what you will not be able to answer the question. Well, honor what debugging is at worst.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question