Results 1 to 5 of 5

Thread: Error while compiling: Unable to open output file ...

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2011
    Location
    Switzerland
    Posts
    822

    Default Error while compiling: Unable to open output file ...

    When I try to compile my application I sometimes get the following error:

    Code:
    ----Compiling MyProgram.src----
    - Compiling Program: C:\DataFlex Projects\MyProgram\AppSrc\MyProgram.src
    - LINK ERROR: UNABLE TO OPEN OUTPUT FILE C:\DataFlex Projects\MyProgram\Programs\MyProgram.exe, FILE MAY BE IN USE OR READ-ONLY
    - Summary
    - Memory Available: 1086230528
    - Total Warnings : 0
    - Total Errors   : 1
    - Total Symbols  : 2
    - Total Resources: 0
    - Total Commands : 0
    - Total Windows  : 0
    - Total Pages    : 0
    - Static Data    : 0
    - Message area   : 0
    - Total Blocks   : 3
    - 1 ERRORS HAVE BEEN FOUND.
    ----Compile Finished (With Errors!)----
    ----Compiler Error Summary----
    - LINK ERROR: UNABLE TO OPEN OUTPUT FILE C:\DataFlex Projects\MyProgram\Programs\MyProgram.exe, FILE MAY BE IN USE OR READ-ONLY
    I then have to go to the programs-directory and delete the MyProgram.exe and the temp-file.
    I have enough rights to do this, the exe is not open. It does not happen every time, "only" every third or fourth time.

    [edit] Also happens with WebApps, and other 18.1 applications I try to compile.
    Last edited by Raphael Theiler; 23-Jul-2015 at 04:54 AM. Reason: more information added
    Currently working for transXpro (an online platform for a Swiss translation agency).
    Improved (unofficial) DataFlex Forum Search (now with SSL)

  2. #2
    Join Date
    Feb 2009
    Location
    Hengelo, Netherlands
    Posts
    10,869

    Default Re: Error while compiling: Unable to open output file ...

    Raphael,

    The most logical reason - if you have enough rights - is that the executable is still in use. If it is a Windows application it is started on another workstation, another user on your machine or still running without a UI. If it is a web application the webapp server did not terminate the program yet.
    Regards,
    Data Access Worldwide
    Vincent Oorsprong

  3. #3
    Join Date
    Jun 2011
    Location
    Switzerland
    Posts
    822

    Default Re: Error while compiling: Unable to open output file ...

    I thought so too, but the task manager does not show anything.

    And I run it on my laptop, on a local drive, no other users are working on my laptop or accessing it remotely. I can delete the exe (and tmp-file) manually (which should not be possible if it was still open). No matter how often I try to compile, it won't work until I manually delete the exe and the tmp-file...

    And it happens with both, windows and Web applications.
    Currently working for transXpro (an online platform for a Swiss translation agency).
    Improved (unofficial) DataFlex Forum Search (now with SSL)

  4. #4
    Join Date
    Feb 2009
    Location
    SW Connecticut/NY area
    Posts
    9,181

    Default Re: Error while compiling: Unable to open output file ...

    I remember seeing this blog on what seems to be this problem, maybe it'll help
    Bob Worsley
    203-249-2633
    rlworsley at gmail.com

    Do or do not. There is no try. — Yoda

  5. #5
    Join Date
    Jun 2011
    Location
    Switzerland
    Posts
    822

    Default Re: Error while compiling: Unable to open output file ...

    Thanks, I'll give it a shot. Strange though that this happens with 18.1 and not with prior versions.
    Currently working for transXpro (an online platform for a Swiss translation agency).
    Improved (unofficial) DataFlex Forum Search (now with SSL)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •