473,326 Members | 2,813 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,326 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 1067
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...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.