none
WinCE7: fatal error LNK1212: error opening program database; file is in use RRS feed

  • Question

  • So I have created new OS design via "Create an OS Design" wizard on new PlatfromBuilder project creation in Visual Studio 2008 without any additional operations. I selected "Virtual PC: 86" and "Industrial Controller" options. But when I try to build this i get the error:

    "Error 2717 fatal error LNK1212: error opening program database; file is in use {log="C:\WINCE700\build.log(8505)"} E:\PROJECTS\WinCE\OSDesigns\DC22CE7\DC22CE7\Wince700\VirtualPC_x86_Retail\cesysgen\oak\target\x86\retail\urlmon.pdb"

     

    For the first there is no urlmon.pdb file in the above directory.

    So I tried to restart PC, restart VS, clean project, rebuild project, delete VirtualPC_x86_Retail folder in a project directory, but all these actions have not led to success.

    I don't have any idea what I can do with this.

     

    My configuration: Windows 7, VS8, WinCE7 (I previously had WinCE6R3 on this PC).

     

     Last strings of the build.log file:

    -map:E:\PROJECTS\WinCE\OSDesigns\DC22CE7\DC22CE7\Wince700\VirtualPC_x86_Retail\cesysgen\oak\target\x86\retail\urlmon.map
    -savebaserelocations:E:\PROJECTS\WinCE\OSDesigns\DC22CE7\DC22CE7\Wince700\VirtualPC_x86_Retail\cesysgen\oak\target\x86\retail\urlmon.rel
    -MERGE:.rdata=.text -ignore:4001,4070,4078,4086,4089,4096,4099,4108,4229 /STACK:65536,4096 -profile -incremental:no
    "/subsystem:windowsce,7.00"
    /base:0x10000000
    C:\WINCE700\public\ie7\oak\lib\x86\retail\urlmon.lib
    C:\WINCE700\public\ie7\oak\lib\x86\retail\urlmon.res
    E:\PROJECTS\WinCE\OSDesigns\DC22CE7\DC22CE7\Wince700\VirtualPC_x86_Retail\cesysgen\sdk\lib\x86\retail\uuid.lib
    E:\PROJECTS\WinCE\OSDesigns\DC22CE7\DC22CE7\Wince700\VirtualPC_x86_Retail\cesysgen\sdk\lib\x86\retail\ole32.lib
    E:\PROJECTS\WinCE\OSDesigns\DC22CE7\DC22CE7\Wince700\VirtualPC_x86_Retail\cesysgen\sdk\lib\x86\retail\oleaut32.lib
    C:\WINCE700\public\ie7\oak\lib\x86\retail\ieuuid.lib
    C:\WINCE700\public\ie7\oak\lib\x86\retail\shelluuid.lib
    E:\PROJECTS\WinCE\OSDesigns\DC22CE7\DC22CE7\Wince700\VirtualPC_x86_Retail\cesysgen\oak\lib\x86\retail\atls.lib
    E:\PROJECTS\WinCE\OSDesigns\DC22CE7\DC22CE7\Wince700\VirtualPC_x86_Retail\cesysgen\oak\lib\x86\retail\atlosapis.lib
    E:\PROJECTS\WinCE\OSDesigns\DC22CE7\DC22CE7\Wince700\VirtualPC_x86_Retail\cesysgen\oak\lib\x86\retail\shlwapi.lib
    E:\PROJECTS\WinCE\OSDesigns\DC22CE7\DC22CE7\Wince700\VirtualPC_x86_Retail\cesysgen\sdk\lib\x86\retail\wininet.lib
    E:\PROJECTS\WinCE\OSDesigns\DC22CE7\DC22CE7\Wince700\VirtualPC_x86_Retail\cesysgen\oak\lib\x86\retail\urlmonui.lib
    E:\PROJECTS\WinCE\OSDesigns\DC22CE7\DC22CE7\Wince700\VirtualPC_x86_Retail\cesysgen\sdk\lib\x86\retail\coredll.lib
    C:\WINCE700\public\common\oak\lib\x86\retail\corelib0.lib
    E:\PROJECTS\WinCE\OSDesigns\DC22CE7\DC22CE7\Wince700\VirtualPC_x86_Retail\cesysgen\oak\lib\x86\retail\corelib1.lib
    E:\PROJECTS\WinCE\OSDesigns\DC22CE7\DC22CE7\Wince700\VirtualPC_x86_Retail\cesysgen\sdk\lib\x86\retail\urlmon.exp
    Generating code
    Finished generating code
    E:\PROJECTS\WinCE\OSDesigns\DC22CE7\DC22CE7\Wince700\VirtualPC_x86_Retail\cesysgen\oak\target\x86\retail\urlmon.pdb : fatal error LNK1212: error opening program database; file is in use
    NMAKE : fatal error U1077: 'C:\WINCE700\sdk\bin\i386\x86\link.EXE' : return code '0x4bc'
    Stop.
    NMAKE : fatal error U1077: 'C:\WINCE700\sdk\bin\i386\nmake.exe' : return code '0x2'
    Stop.
    SYSGEN: ERROR: error(s) in sysgen phase ( ie7 )
    CEBUILD: BUILDMSG: There were errors building. Check C:\WINCE700\build.err

    BLDDEMO: ERROR: There were errors building cebase.

    BLDDEMO: BUILDMSG: BldDemo ended at 0:29:44,71 on 22.04.2011 (exit code 1)
    BuildLogs: BUILDMSG: Exiting: BldDemo1.bat clean -q (result code 1).
    BuildLogs: BUILDMSG: C:\WINCE700\build.log
    BuildLogs: BUILDMSG: C:\WINCE700\build.out
    BuildLogs: BUILDMSG: C:\WINCE700\build.wrn
    BuildLogs: BUILDMSG: C:\WINCE700\build.err

    Thursday, April 21, 2011 8:46 PM

Answers

  • Problem was solved by disabling compatibility mode for Windows XP (I don't know why, but it was enabled by default)

    • Marked as answer by yuta11 Wednesday, July 13, 2011 11:37 PM
    Wednesday, July 13, 2011 11:37 PM

All replies

  • Disable your virusscanner (or at least put the \WINCE700 tree in the
    "exclude" list). That's the usual cause for this error.
     

    Good luck,

    Michel Verhagen, eMVP
    Check out my blog: http://guruce.com/blog

    GuruCE
    Microsoft Embedded Partner
    http://guruce.com
    Consultancy, training and development services.
    Friday, April 22, 2011 12:25 AM
    Moderator
  • Unfortunately it doesn't work. I have tried to add WINCE700 folder to exclude list, disable the antivirus and even uninstall one (Microsoft Security Essensial) but it doesn't affect.
    Friday, April 22, 2011 12:53 PM
  • This could be related to the fact that you have installed the WINCE700 tree to one drive and have your OSDesign on a different drive.    I haven't tried that it a long time, but it was unsupported at one time.

    It might also indicate that your files are read only.


    Bruce Eitman (eMVP)
    Senior Engineer
    Bruce.Eitman AT Eurotech DOT com
    My BLOG http://geekswithblogs.net/bruceeitman

    Eurotech Inc.
    www.Eurotech.com
    Friday, April 22, 2011 1:09 PM
    Moderator
  • So I have tried to create new OSDesign on the same drive in c:\WINCE700\OSDesigns directory, also i have uncheked Read-only checkbox for all WINCE700 subfolders and files. Unfortunately error still occurs.


    Friday, April 22, 2011 1:42 PM
  • Problem is still actual. Any other ideas?
    Monday, April 25, 2011 7:19 PM
  • Maybe you can try "set BUILD_MULTIPROCESSOR=1" to disable the multithreaded build (http://msdn.microsoft.com/en-us/library/ee479008.aspx).
    Monday, April 25, 2011 8:25 PM
  • Download "Unlocker" (http://www.emptyloop.com/unlocker/) or
    "Sysinternals Handle"
    (http://technet.microsoft.com/en-us/sysinternals/bb896655) and see if it
    tells you anything useful to track down what or who has the files locked.
     

    Good luck,

    Michel Verhagen, eMVP
    Check out my blog: http://guruce.com/blog

    GuruCE
    Microsoft Embedded Partner
    http://guruce.com
    Consultancy, training and development services.
    Tuesday, April 26, 2011 6:52 AM
    Moderator
  • Download "Unlocker" (http://www.emptyloop.com/unlocker/) or
    "Sysinternals Handle"
    (http://technet.microsoft.com/en-us/sysinternals/bb896655) and see if it
    tells you anything useful to track down what or who has the files locked.


    As I said before the file indicated in the error (urlmon.pdb) does not exist in the OSDesign or WINCE700 directory. For this reason I cannot use any unlocker like programs.

     

     

    Thursday, April 28, 2011 1:40 PM
  • Also I have tried to reinstall Windows Embedded Compact 7 but with no results.
    Thursday, April 28, 2011 4:51 PM
  • Problem was solved by disabling compatibility mode for Windows XP (I don't know why, but it was enabled by default)

    • Marked as answer by yuta11 Wednesday, July 13, 2011 11:37 PM
    Wednesday, July 13, 2011 11:37 PM