Here's our problem. We are developing a student queuing/tracking system in VB that will allow students to sign-in to see an academic counselor. The front desk of the department gets notified and they control all flow of students to counselors. The front desk then sends a notification to a counselor when a student has signed in. Currently only 6 - 8 clients are using the application but the plan is to expand to 50+ clients.
Our first approach was to use winsock to send/receive messages. We found that messages were being "lost" and never received on the other end even though we had error handling in place.
Our next approach was to use DCOM and fire events when a student signed-in. The client creates a connector object which points to a global control object that fires the events. However, when the counselor's PC crahses the connector object on the server is not destroyed. As more and more of this happens, the activex exe on the server starts generating "component busy" messages on the clients. Once we restart the server everything works fine for a day or two then the same problem starts again.
We are now considering using timers to poll the database for new students but we don't want to create unnecessary network traffic.
Finally, here's my question: is DCOM and events/callbacks the best choice for this or is timers the better approach? Any suggestions would be greatly appreciated.
Thanks,
Troy
Our first approach was to use winsock to send/receive messages. We found that messages were being "lost" and never received on the other end even though we had error handling in place.
Our next approach was to use DCOM and fire events when a student signed-in. The client creates a connector object which points to a global control object that fires the events. However, when the counselor's PC crahses the connector object on the server is not destroyed. As more and more of this happens, the activex exe on the server starts generating "component busy" messages on the clients. Once we restart the server everything works fine for a day or two then the same problem starts again.
We are now considering using timers to poll the database for new students but we don't want to create unnecessary network traffic.
Finally, here's my question: is DCOM and events/callbacks the best choice for this or is timers the better approach? Any suggestions would be greatly appreciated.
Thanks,
Troy