Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Cryptic Error popup

Cryptic Error popup

Scheduled Pinned Locked Moved C / C++ / MFC
announcementcsharpc++visual-studiodebugging
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jerry Wang 0
    wrote on last edited by
    #1

    Hi All, Has anyone encountered: An unnamed file was not found error message box popup in your application before? It happens when I run the release version of my MFC program outside of MS Visual Studio. When run inside visual studio, both debug and release versions have no errors... Comments? Inputs? Thanks.

    R 1 Reply Last reply
    0
    • J Jerry Wang 0

      Hi All, Has anyone encountered: An unnamed file was not found error message box popup in your application before? It happens when I run the release version of my MFC program outside of MS Visual Studio. When run inside visual studio, both debug and release versions have no errors... Comments? Inputs? Thanks.

      R Offline
      R Offline
      Ramu Pulipati
      wrote on last edited by
      #2

      This is MFC framework error message. This will be occur when you try to open a file which doesnt exist physically. If this problem occurs in InitInstance()..then manually populate the CCommandLineInfo Object. For more info, let us know what u r doing! Hth, Ramu

      J 1 Reply Last reply
      0
      • R Ramu Pulipati

        This is MFC framework error message. This will be occur when you try to open a file which doesnt exist physically. If this problem occurs in InitInstance()..then manually populate the CCommandLineInfo Object. For more info, let us know what u r doing! Hth, Ramu

        J Offline
        J Offline
        Jerry Wang 0
        wrote on last edited by
        #3

        Thanks You for your help! Thanks to your note, I found the problem in one of my destructors. It was attempting to delete a file that does not exist. CFileStatus fileStatus; // and get file status and test if the file exists CFile::GetStatus("temp.satdef", fileStatus); // m_attribute == 0xCC if does not exist // + 0x10 if it's a directory // - 0x04 if it's a system file // - 0x08 if it's a volume // =============================== // == 0xD0 if it does not exist or if it's a directory if (!(fileStatus.m_attribute & 0xD0)) CFile::Remove("temp.satdef"); Apparently, somehow, my fileStatus check sometimes doesn't work all the time.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups