Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4327548
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T09:33:17+00:00 2026-05-21T09:33:17+00:00

14 years ago when I was a green horn, setting up the components for

  • 0

14 years ago when I was a green horn, setting up the components for classic ASP was not in my pay grade… Now however, I have gone back to the future and I find myself having to maintain and code against a classic ASP project using a COM object.

Now I’m finding myself looking at ancient articles dated from 1999 to 2001 and I’m wondering if anyone has a good answer as to why the COM (ActiveX .dll) should have Unattended Execution and Retained in Memory set?

I should also note, that the current architecture of the site are these .dlls just dropped on the server (registered of course). I’m wondering about COM+ and MTS. We are sticking with classic ASP for now (long story). However, I’m hoping to move to .NET with the quickness. So if I can minimize the maintenance time of this current architecture that would be helpful. Can you please also give me a reason why we should use COM+ and MTS? As well as what would be involved with adding those features.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T09:33:17+00:00Added an answer on May 21, 2026 at 9:33 am

    Unattended Execution prevents your VB6 binary from showing an interactive Dialog, i.e. a window on the server that your webclient would be unable to see or interact with.

    This could be a Msgbox() or a runtime error popup. When Unattended Execution is flagged, runtime errors are logged to the Windows Event Log.

    Retained in memory prevents IIS (or your host) from immediately releasing your DLL. Depending on your host setup, the DLL will be retained in memory and reused. Some hosts (such as IIS) will release the DLL after some time.

    See also: You can configure the Unattended Execution option and the Retained In Memory option in the latest version of Msvbvm60.dll

    You must turn on the Unattended
    Execution option and the Retained In
    Memory option before compilation to
    host a Microsoft Visual Basic
    Enterprise Edition for Windows 6.0
    component (Microsoft ActiveX DLL) in a
    multi-threaded environment, such as
    Microsoft Transaction Server
    (Mtx.exe), Internet Information
    Services (Inetinfo.exe), COM+
    (Dllhost.exe), and Microsoft SQL
    Server 7.0 or SQL Server 2000
    (Sqlservr.exe). However, you may not
    know whether a component is going to
    be used in such an environment or you
    may forget to turn on the Unattended
    Execution option and the Retained In
    Memory option. To address this
    problem, the latest version of the
    Visual Basic runtime (Msvbvm60.dll)
    introduces a new feature that permits
    you to turn on the Unattended
    Execution option and the Retained In
    Memory option at run time.

    And: Threading issues with Visual Basic 6.0 ActiveX components

    • Access Violation inside MSVBVM60.DLL.
    • Client enters a deadlock state. You may see these two symptoms if a Visual
      Basic ActiveX DLL is hosted in a
      multi-threaded environment, for
      example, IIS, MTS, or a multi-threaded
      client, and the Retain In Memory
      option is not enabled.

    And, of course: Visual Basic Reference General Tab (Project Properties Dialog Box)

    Unattended Execution Indicates that the project is intended to run
    without user interaction. Unattended
    projects have no interface elements.
    Any run-time functions such as
    messages that normally result in user
    interaction are written to an event
    log.

    Retained in Memory Retains a project in memory. However, there is a
    performance cost: A project retained
    in memory is not unloaded until the
    process terminates.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

A few years ago I have worked on a green field project where we
I used PHP years ago but have since been developing in C#/VB.Net. In ASP.Net
Four years ago I wrote a Sudoku puzzle solver, and now I'm trying to
Years ago, I decided never to rely solely on setting a thread's FreeOnTerminate property
About two years ago I have found a component that can be used to
Some years ago I created a small website in PHP that now has grown
A few years ago there was a bug involving ASP.NET and Tortoise/AnkhSvn (can't remember
Years ago, I used to do some basic programming in C. Now I am
Years ago I used to have a visual studio plug in (2003 era) which
Years ago, I have heard that someone was about to demonstrate that every computer

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.