Results 1 to 6 of 6

Thread: Qt application loads tons of dll's ONLY on OS startup

  1. #1

    Default Qt application loads tons of dll's ONLY on OS startup

    Hi Guys,
    I have a Qt app that i run on OS startup (by registery)
    I have a certain problem... when i pull out a list of the files that exist in my app directory during startup i am getting a list of ~1000 dll's and stuff, but when i run the application directly and not from startup - it only has 7 files...

    here is a sample of the files...

    certcli.dll
    certCredProvider.dll
    certenc.dll
    CertEnroll.dll
    CertEnrollCtrl.exe
    CertEnrollUI.dll
    certmgr.dll
    certmgr.msc
    CertPolEng.dll
    certprop.dll
    certreq.exe
    certutil.exe
    cewmdm.dll
    cfgbkend.dll
    cfgmgr32.dll
    chajei.ime
    change.exe
    charmap.exe
    chcp.com
    chglogon.exe
    chgport.exe
    chgusr.exe
    chkdsk.exe
    chkntfs.exe
    chkwudrv.dll
    choice.exe
    chsbrkr.dll
    chtbrkr.dll
    CHxReadingStringIME.dll
    ci.dll
    cic.dll
    cintlgnt.ime
    cipher.exe
    CIRCoInst.dll
    clb.dll
    clbcatq.dll
    cleanmgr.exe
    clfs.sys
    clfsw32.dll
    cliconfg.dll
    cliconfg.exe
    cliconfg.rll
    clip.exe
    clusapi.dll
    cmcfg32.dll
    cmd.exe
    cmdial32.dll
    cmdkey.exe
    cmdl32.exe

    any idea why it happens? why it happens only when i load the app during startup?
    And does it have any security aspects that i need to be aware of?
    Thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Napoli, Italy
    Posts
    621
    Thanks
    5
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt application loads tons of dll's ONLY on OS startup

    it may depend from different app "working directory" (directory where app is launched)

    How do you get the file list??
    A camel can go 14 days without drink,
    I can't!!!

  3. #3
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Qt application loads tons of dll's ONLY on OS startup

    That looks much more like the activity of a virus scanner. Unless you have coded your Qt app to access these files, e.g. charmap.exe or cmd.exe, it won't do it on its own.

  4. #4

    Default Re: Qt application loads tons of dll's ONLY on OS startup

    The file list is being printed on app startup - that the first thing that happens.
    The wiered thing about it, that only when i add this app to startup in registry it show those files as present in the application directory... when i execute it after os startup from file browser - the list is only the application files...
    Anyone encountered such a behavior?

  5. #5
    Join Date
    Apr 2011
    Posts
    61
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qt application loads tons of dll's ONLY on OS startup

    You're trying to list the files in the application directory right ?
    But, try to write to your log file (or output) the current directory before listing.
    Maybe the explorer.exe in the initialization sets the working directory of "C:\WINDOWS\system32\"
    So, if listing the files of the current working directory, this will make you list the content of system32 directory.

    If you're already using the function of qApp. You can try to use the windows api function GetModuleHandle, GetModuleFileName, use the path in a QFileInfo and get absoluteDirectory();

  6. #6

    Default Re: Qt application loads tons of dll's ONLY on OS startup

    looks like the current directory is system32 , any idea why its set to it? or how can i change that to the app directory?

Similar Threads

  1. Replies: 5
    Last Post: 6th January 2011, 13:32
  2. Replies: 17
    Last Post: 7th November 2010, 00:51
  3. modifying webkit content before loads
    By rbp in forum Qt Programming
    Replies: 3
    Last Post: 17th September 2010, 06:00
  4. Problem in Application llaunch in startup MACOSx
    By moh.gup@gmail.com in forum Qt Programming
    Replies: 0
    Last Post: 16th March 2010, 06:33
  5. Showing a dialog at application startup
    By PaladinOfKaos in forum Qt Programming
    Replies: 3
    Last Post: 1st April 2008, 20:05

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.