473,387 Members | 1,641 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,387 software developers and data experts.

VB6 Driver App with .Net DLL ERROR

I have an application written in VB6 that calls a DLL written in .Net. On
the first run of the program, everything works fine. If I stop the program
or close it, then run the program again, I get the following error when
calling a function in the .Net DLL:

The callee (server [not server application]) is not available and
disappeared; all connections are invalid. The call may have executed.

If I close the program, then close VB6, reopen VB6 and run the program it
runs fine. Try to run the program a 2nd time without closing VB6, and I get
the error again.

Let me know if I need to provide more info.

THANKS!
Mar 9 '06 #1
2 1500
PJSimon wrote:
I have an application written in VB6 that calls a DLL written in .Net. On
the first run of the program, everything works fine. If I stop the program
or close it, then run the program again, I get the following error when
calling a function in the .Net DLL:

The callee (server [not server application]) is not available and
disappeared; all connections are invalid. The call may have executed.

If I close the program, then close VB6, reopen VB6 and run the program it
runs fine. Try to run the program a 2nd time without closing VB6, and I get
the error again.

Let me know if I need to provide more info.

THANKS!

Sounds like you are not reinitializing something when you try to make
your call. Try to duplicate all the steps you do during the first call
again. By that I mean redeclare all your variables. Can't help anymore
w/o code.

Chris
Mar 9 '06 #2
Show us how your exposing your .NET DLL to COM and how your VB6 app invokes
the .NET dll. I do this all the time and have never had a problem.

In my experience, the VB6.exe does some weird things and likes to hold on to
handles when the program has stopped executing.

"PJSimon" wrote:
I have an application written in VB6 that calls a DLL written in .Net. On
the first run of the program, everything works fine. If I stop the program
or close it, then run the program again, I get the following error when
calling a function in the .Net DLL:

The callee (server [not server application]) is not available and
disappeared; all connections are invalid. The call may have executed.

If I close the program, then close VB6, reopen VB6 and run the program it
runs fine. Try to run the program a 2nd time without closing VB6, and I get
the error again.

Let me know if I need to provide more info.

THANKS!

Mar 10 '06 #3

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

Similar topics

0
by: avihay | last post by:
Hello, Using .NET 1.1 and MS visual studio 2003 we are failing to close an ODBC Connection to an ODBC driver using system.data.odbc. We are getting the following Error from the Microsoft odbc...
0
by: Bing | last post by:
Hi, I am configuring the same DB2 v8.1 JDBC universal driver (db2jcc.jar and db2jcc_license_cisuz.jar) from DB2 SP5 fix pack under WSAD 5.1.x environment and WebSphere application Server 5.0.2...
3
by: Andrew Johnson | last post by:
Hi, I am trying to make a UBD DB2 7.2 connection using the Java COM.ibm.db2.jdbc.app.DB2Driver via Tomcat 3.2.1 on Solaris (and also on an AIX system with 3.3.1). I am attempting this either...
7
by: Rhino | last post by:
I was reading the DB2 for Linux/Unix/Windows (V7.2) manuals just now to get some background information about UDFs when I came across this: "Note that valuable debugging tools such as printf() do...
1
by: Dakkar | last post by:
I'm getting this error when i execute my program ERROR Acces denied for user:'root@DAKKAR123' and when i write the line like this i dont take any error MyConn = new...
3
by: bb | last post by:
I have a windows network device driver written in c++ and a user interface im porting to c#, my problem is i dont seem to be getting notified of the event calls from the driver to the c# app im...
1
by: GPBSOFT | last post by:
I am Italian developer, escuse me for my bad English I have a problem with ODBC. I must link to a database from Visual FoxPro, I have installed Windows XP Professional with service pack 2. When I...
0
by: bazzer | last post by:
hey, i am using visual basic.net 2003 and have an ASP.NET webform application thats accessing a microsoft access 2003 database. i kept getting the following error when i tried to run it: ERROR ...
0
by: bazzer | last post by:
hey, im trying to access a microsoft access database from an ASP.NET web application in visual basic 2003.NET. i get the following error when i try running it: Server Error in...
0
by: sudhaoncyberworld | last post by:
Dear Techies, I do have small issue on connecting oracle server from .net This is the code snippet public string strConString = "Driver={Microsoft ODBC for...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.