Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Call for Presentations - Qt World Summit

    Win XP Embedded - "The memory could not be "read"."

    Installation and Deployment
    2
    2
    1575
    Loading More Posts
    • 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.
    • S
      silent90 last edited by

      Hello.

      I have written two small QT applications (QT4.7.4) and compiled under Windows with dynamic linking.
      The Qt DLL files has been copied to the folder with an executable and everything works fine on my Windows 7 x64 box and virtual Windows XP SP3.

      Now I am trying to run this application on my HP T5720 thin client box with windows XP Embedded SP3 and I am getting this error message:

      [code]

      mtest: mtest.exe - Application Error

      The instruction at "0x6ff5d460" referenced memory at "0x00050043". The memory could not be "read".

      Click on OK to terminate the program

      OK

      [/code]

      The second address is not constant, sometimes it's 0x0, sometimes 0x30003, etc.

      Does anyone have an idea what could be the problem or where to start looking?
      I have already tried to scan this executable with Dependency Walker and copy some DLLs from XP SP3 - no result.

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi and welcome to DevNet,

        I would check that all pointers are initialized at zero. If any pointer is not initialized to something in a constructor, check it each time an operation should be done on it.

        If you have memory allocated with malloc or similar, check that you don't read from it past its end.

        Hope it helps

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 0
        • First post
          Last post