You may receive a "LNK1106: invalid file or disk full: cannot seek to 0x76364" error message in Visual C++ .NET 2003 (888326)



The information in this article applies to:

  • Microsoft Visual C++ .NET (2003)

SYMPTOMS

When you have a Microsoft Visual C++ .NET 2003 program that is linked under IBM Rational ClearCase Source Code Control (SCC) and SCC uses local views, you may receive the following error message:
LNK1106: invalid file or disk full: cannot seek to 0x76364

CAUSE

This problem is caused by an interaction between the Link.exe file and the Rational ClearCase local views. The interaction causes Link.exe to fail when memory is allocated for files.

RESOLUTION

To resolve this problem, configure the Link.exe file to allocate enough file space for the expected image size when you link the program. To do this, add the following switch to your link:

/expectedoutputsize:50000000

Note Start at a value of 50000000, and increase the value to 75000000 in increments until your link is stable.

The ExpectedOutputSize switch allocates the memory for the image file instead of using the usual algorithm. The algorithm starts at 256 KB and doubles the size every time it is necessary to write beyond the end of the file. The ExpectedOutputSize switch reduces the address space fragmentation that those actions cause.

The third-party products that this article discusses are manufactured by companies that are independent of Microsoft. Microsoft makes no warranty, implied or otherwise, regarding the performance or reliability of these products.

Modification Type:MinorLast Reviewed:1/17/2006
Keywords:kbdesign kbtshoot kbprb KB888326 kbAudDeveloper