Problem with running a Delphi 32bit exe on Windows 2008 Terminal Server after update of this Delphi 32bit executable

Posted on 2011-05-13
Last Modified: 2012-05-11

We have a problem with updating a Delphi 32bit executable while users are running this
executable on Windows 2008 terminal Server. The executable resides on a remote network
share from another Windwos 2003 File Server and is a single file of 10mb written in Delphi 7.

With the old 2003 terminal server we rename the .exe to .old and copy the new .exe.
Already logged on users continue with the old exe.New users are running the new exe.
No problems.

Now with the new 2008 terminal server we do te same. Rename the .exe to .old and copy the new .exe.
Already logged on users continue with the old exe, no problems for them.
New users are running the old executable according to the main screen but get all
kind of errors (access violations) in de updated modules.
It seems that windows is trying to load the new exe partitially.
When logged on as a domain administrator there are many 100+ minidump....dmp files placed in the
directoty of the executable.

After killing the proces / program for each user the application working fine again if
the exe is started again. Then the new exe is loaded with no problems.
This is no option for us for each update.

Can anyone help with this problem?



Question by:WilliamOorschot
    LVL 6

    Assisted Solution

    Your method of changing out a live and running .exe will not be supported going forward. Window 2008 uses "Address space layout randomization (ASLR) " and that is probably what is causing your error. You need to come up with a better technique ... something like writing to a reg key or file and having the .exe look for the new .exe to load next time. Just forget out touching a running .exe
    LVL 14

    Expert Comment

    try to check the compatibility mode of exe properties.
    LVL 32

    Accepted Solution


    Your upgrade program can send a message to all logged on users that the system is going to upgrade in a few minutes and they need to exit the application, if some users are still logged on say after two minutes, log them off automatically then do your upgrade.
    As long as the user gets a message that they are about to be upgraded, they should be alright
    LVL 100

    Expert Comment

    This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.

    Featured Post

    How does your email signature look on mobiles?

    Do your employees use mobile devices to reply to emails? With mobile becoming increasingly important to the business world, it is in your best interest to make sure that your email signature looks great across all types of devices.

    Join & Write a Comment

    Normally after a failure of Domain Controller, when promoting new DC the DC is renamed, we will discuss the options in Dcpromo to re-create the DC with the same name. Scenario: You are a small IT shop with two Domain Controllers (Domain Contr…
    New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
    This tutorial will show how to push an installation of Backup Exec to an additional server in both 2012 and 2014 versions of the software. Click on the Backup Exec button in the upper left corner. From here, select Installation and Licensing, then I…
    This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

    733 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

    22 Experts available now in Live!

    Get 1:1 Help Now