Re: link error in linking sample user exit program

From: David Criswell <dcriswel_at_oracle.uucp>
Date: Sat, 5 Mar 1994 04:47:28 GMT
Message-ID: <1994Mar5.044728.6523_at_oracle.us.oracle.com>


The answer to this was put into the release note around Pro*C 1.3.17.0.7, or so. It's not at all intuitively obvious.

In article <CM2wwt.HrL_at_hkpu01.hkp.hk> cs018838_at_hkpu01.hkp.hk (Terence Yeung) writes:
>
>I would like to ask a question about linking the testexit.pc sample file
>in oracle6 dos version.
>
>My problem is as follows:
>
>when I use the link script rfm.mln, rfmp.mln to link the testexit.pc sample
>file, there is no error occured. However, when I use the link script
>rfmpm.mln, error occured.

There's a problem with Microsoft Link and very large DOS executables. This is related to how much free memory in the lower 640K you have, and the size of the executable generated. rfm & rfmp are small enough that they're happy with whatever you're giving them. If you run MSLink in OS/2, or use SLR Systems' OptLink, this problem goes away. Also, if you load more TSRs this will cause rfm & rfmp to fail this way too.

>The error is
> Link : Fatal error , cannot open run file.

Yes, it can't open the run file because the disk is full.

>This error displayed after
> creating temporary file c:\l104402

This temp file is the culprit. When memory is low, for some reason the linker starts endlessly writing to this file. When the write fails (the disk is full), the linker attempts to open the run file. This fails since there's no free space on the disk. Link displays the error, kills the temp file, freeing up all the space.

>And I have wait for a long time before the Link fatal error displayed.

Finding this was slow going since it frequently took >24 hrs for the disk to fill. Freeing up disk space doesn't do any good - it just makes the error take longer to show up.

The amount needed was either 500 or 600K to get them all to work under DOS. I forget which one but I remember being surprised by the round figure. I don't know if this has been fixed in a more recent linker version.

Dave Criswell
Oracle Corporation
Desktop Products
I don't speak for them. Received on Sat Mar 05 1994 - 05:47:28 CET

Original text of this message