473,396 Members | 2,011 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Problem with COM server

Hi,

we have an application with a COM interface (developped in VC++ 6),
and one of our customers is currently creating with VB.net a client
for this application.
The problem is that after the client calls our server application, if
the server application is then closed using the usual GUI way, the
window is closed, the application is now more listed in the task
manager (application tab), but the process remains.
There was no such problem when using a VB6 client.

Do you see what could cause such a behaviour ?

Thanks in advance.

Olivier Paumier
Jul 21 '05 #1
3 1069
Hello Olivier,

System.Runtime.InteropServices.Marshal.ReleaseComO bject(package);
Hi,

we have an application with a COM interface (developped in VC++ 6),
and one of our customers is currently creating with VB.net a client
for this application.
The problem is that after the client calls our server application, if
the server application is then closed using the usual GUI way, the
window is closed, the application is now more listed in the task
manager (application tab), but the process remains.
There was no such problem when using a VB6 client.
Do you see what could cause such a behaviour ?

Thanks in advance.

Olivier Paumier


Jul 21 '05 #2
Jayson Knight <ja********@carolina.rr.com> wrote in message news:<eR**************@TK2MSFTNGP12.phx.gbl>...
Hello Olivier,

System.Runtime.InteropServices.Marshal.ReleaseComO bject(package);


Hello Jayson,

thanks for your advice. The hint you gave me is to release the RCW
once you're done with the COM server, isn't it ?
Now there's still a problem remaining for me, in the case the COM
server was closed by the user and not by the .net client, how can the
..net client be aware of it ?
Our COM application does not send any "quit" event, is it necessary or
is there a way to do it without it ?

Thanks in advance.

Cheers,

Olivier
Jul 21 '05 #3
Jayson Knight <ja********@carolina.rr.com> wrote in message news:<eR**************@TK2MSFTNGP12.phx.gbl>...
Hello Olivier,

System.Runtime.InteropServices.Marshal.ReleaseComO bject(package);


Hello Jayson,

thanks for your advice. The hint you gave me is to release the RCW
once you're done with the COM server, isn't it ?
Now there's still a problem remaining for me, in the case the COM
server was closed by the user and not by the .net client, how can the
..net client be aware of it ?
Our COM application does not send any "quit" event, is it necessary or
is there a way to do it without it ?

Thanks in advance.

Cheers,

Olivier
Jul 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: fripper | last post by:
I posted this problem a couple of days ago but felt I might have better luck re-stating the problem. Apparently I messed up IIS (v. 5) somehow because I am suddenly unable to load web forms! A...
0
by: AlessanBar | last post by:
Hello Friends !! I have a strange problem, and I need to know what would be the source of this. I have a laptop computer with the following configuration: Pentium III Brand : Toshiba Speed :...
8
by: Sarah | last post by:
I need to access some data on a server. I can access it directly using UNC (i.e. \\ComputerName\ShareName\Path\FileName) or using a mapped network drive resource (S:\Path\FileName). Here is my...
5
by: fripper | last post by:
I posted this problem a couple of days ago but felt I might have better luck re-stating the problem. Apparently I messed up IIS (v. 5) somehow because I am suddenly unable to load web forms! A...
1
by: sherifbk | last post by:
Problem description ============== - I have 4 clients and 1 server (SQL server) - 3 clients are Monitoring console 1 client is operation console - Monitoring console collects some data from...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.