Solved

DCOM Problem on the server (help!)

Posted on 2002-05-23
3
169 Views
Last Modified: 2010-05-02
I have the following problem:

- project created in VB 6.00, enterprise edition
- client server application using DCOM

Now, this is the problem: Whenever I have a problem on the network, my server hangs, and the application is not responding anymore to any command. I thinks that this is due to the fact that the client is sending some event to the remote server, which is unavailable. This hangs the clients, that is waiting for the ending of the call since the project is single-threaded.

The client is showing a form, so I can't just recompile the project as multi-threaded, since I would have a form for each instance of the client...

Please help me! Any suggestion?
I can increase point to 200.... :))

Thanks in advance...
Marco.
0
Comment
Question by:marconovaro
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 1

Expert Comment

by:ca_heckler
ID: 7044563
DCOM usually don't behave all that well over a unreliable network connection. I'm not sure you can work around that in VB, as all the ALT/COM fun stuff is hidden.

Have you considering using sockets for the communication? Off course you would have to rely only on simple data types or implement some marshalling on your own, but this way at least you are in the control, and its still all VB.

Thrust-me, it is not that difficult: write a little wrapper object and use it on both sides.
0
 
LVL 6

Author Comment

by:marconovaro
ID: 7046374

Dear ca_heckler,

thanks for the reply. I actually implemented a little workaround to the problem by means of:

- an ActiveX EXE that is multithreaded, and implements the DCOM interface to the clients
- an ActiveX EXE that is single-threaded, and shows the form (I need this because this side is used to communicate on the serial line (!)

This SEEMS to work, because I can also disconnect the net cable, and the server continues working. I actually don't know if this will solve the problem, since I still have to test it on the "unrelaiable network"...
Nevertheless, thanks very much indeed for the answer: I was thinking to change the project to use sockets (avoiding DCOM, that is creating much more mess than help). The problem is that I'm using the same ActiveX EXE both on the server (with COM) an on some clients (with DCOM), so I should be able to use sockets also for the "local" communication.
I'll check how difficult it is for me to change the project itself.

Thanks again.
0
 
LVL 6

Accepted Solution

by:
Mindphaser earned 0 total points
ID: 7127337
Points refunded and moved to PAQ

** Mindphaser - Community Support Moderator **
0

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question