MySQL / ADO Connection quits on disconnect

Posted on 2004-11-27
Last Modified: 2013-12-25
Why is it whenever I close a connection to my MySQL database, VB6 closes itself?
Question by:DrDamnit
    LVL 24

    Expert Comment

    How are you closing the connection ?
    LVL 32

    Author Comment

    with the 'Close' method.

    Dim cn as new rdoConnection

    ... open/do other stuff.....

    [Program and VB unexpectedly quits]
    LVL 29

    Expert Comment

    Why are you using RDO?

    LVL 32

    Author Comment

    Because .........

    Because that is what I was using to connect to my MySQL server.

    do you have a better suggestion?
    LVL 29

    Accepted Solution


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Article by: Martin
    Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
    This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
    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…
    This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

    759 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

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now