I have the following problem :
Configuration:
client --> COM --> Buz.dll --> DCOM --> Persistence.exe
Persitence.exe:
In the main module i have the connection to the database (MYConnection).
In the classes within persistence.exe i use the Myconnection.
Everytime a client asks an instance, the main module gets executed and the class does his job.
After that, the persistence.exe stops until another client again asks another instance of a class.
So everytime a client needs something, the database has to be opened wich takes about 10 seconds.
If i add a form tho the persistence.exe witch i show in the main module, the persistence.exe never
stops executing and the main module only gets to be executed once (only for the first client who
starts the persistence.exe).
Is this the wright thing to do ??? and can anyone explain wich threading options i have to use.
Greetings,
Bart
Configuration:
client --> COM --> Buz.dll --> DCOM --> Persistence.exe
Persitence.exe:
In the main module i have the connection to the database (MYConnection).
In the classes within persistence.exe i use the Myconnection.
Everytime a client asks an instance, the main module gets executed and the class does his job.
After that, the persistence.exe stops until another client again asks another instance of a class.
So everytime a client needs something, the database has to be opened wich takes about 10 seconds.
If i add a form tho the persistence.exe witch i show in the main module, the persistence.exe never
stops executing and the main module only gets to be executed once (only for the first client who
starts the persistence.exe).
Is this the wright thing to do ??? and can anyone explain wich threading options i have to use.
Greetings,
Bart