L
Lonifasiko
Hi,
When starting my application for the first time, I must retrieve all
data from server database with Merge Replication. What I do is start a
new thread with runs a splash form separately, only runs the form, not
the code for replication. Application, first time executes replication
code with Synchronize() synchronous method and then closes the splash
form correctly.
Second time and others, replication executes Synchronize() method but
inmediately closes all the application, not only the thread I start
when a replication must be done. Why if Sinchronize() method is
synchronous? I've also tried with asynchronous calls but there is no
way.
I would need something that would close the splash form and would
return control to the main thread of the application. First time, as
replication is slower, this works correctly, but next times, when
synchronization is quicker, does not. This second time, when splash
form thread is closed, it seems that there are no more threads on the
PPC and therefore, application is completely closed. Could be?
This is my code:
When starting my application for the first time, I must retrieve all
data from server database with Merge Replication. What I do is start a
new thread with runs a splash form separately, only runs the form, not
the code for replication. Application, first time executes replication
code with Synchronize() synchronous method and then closes the splash
form correctly.
Second time and others, replication executes Synchronize() method but
inmediately closes all the application, not only the thread I start
when a replication must be done. Why if Sinchronize() method is
synchronous? I've also tried with asynchronous calls but there is no
way.
I would need something that would close the splash form and would
return control to the main thread of the application. First time, as
replication is slower, this works correctly, but next times, when
synchronization is quicker, does not. This second time, when splash
form thread is closed, it seems that there are no more threads on the
PPC and therefore, application is completely closed. Could be?
This is my code: