5 Replies Latest reply on Jun 23, 2009 12:02 PM by DonReba

    'The memory could not be "read"' problem

    shiquanwang

      Hi everyone.

      I'm meeting the'The memory could not be "read"' problem while running the samples from BROOK installation whether directly or by compiling them in VS2005.

      Here is the error message:

      The instruction at "0x003ca9d0" referenced memory at "0x0000001c". The memory could not be "read".

       

      Below is some information of my hardware and software:

      CPU: Intel Q9550

      GPU: HD4850

      Catalyst™ Version    09.5   
      Driver Packaging Version    8.612-090428a-080257C-ATI

      OS: Windows2003 Enterprise SP2 32bit

      VS2005

       

       

      I'm really new to this and know nothing.

      Anyone can give me a hint?

      Thanks.

       

      Shiquan

        • 'The memory could not be "read"' problem
          gaurav.garg

          Could you post the call stack where you see this exception?

            • 'The memory could not be "read"' problem
              shiquanwang

              Here is the call stack of "binary search"

               

              >    binary_search_d.exe!BinarySearch::run()  Line 263    C++
                   binary_search_d.exe!main(int argc=1, char * * argv=0x003c39e8)  Line 57 + 0x8 bytes    C++
                   binary_search_d.exe!__tmainCRTStartup()  Line 586 + 0x19 bytes    C
                   binary_search_d.exe!mainCRTStartup()  Line 403    C
                   kernel32.dll!77e6f23b()    
                   [Frames below may be incorrect and/or missing, no symbols loaded for kernel32.dll]   
                   aticaldd.dll!0066006f()    
                   aticaldd.dll!0066006f()    
                   aticaldd.dll!0066006f()    
                   aticaldd.dll!00630069()    
                   aticaldd.dll!0066006f()    
                   aticaldd.dll!0066006f()    
                   aticaldd.dll!0066006f()    
                   aticaldd.dll!0066006f()    
                   aticaldd.dll!00630069()    
                   aticaldd.dll!0066006f()    
                   aticaldd.dll!0066006f()    
                   aticaldd.dll!0066006f()    
                   aticaldd.dll!0066006f()    
                   aticaldd.dll!00630069()    
                   aticaldd.dll!00530078()    
                   aticaldd.dll!00630069()    
                   aticaldd.dll!0066006f()    
                   aticaldd.dll!0066006f()    
                   aticaldd.dll!0066006f()    
                   aticaldd.dll!00630069()    
                   aticaldd.dll!0066006f()    
                   aticaldd.dll!0066006f()    
                   aticaldd.dll!0066006f()    
                   aticaldd.dll!0066006f()    
                   aticaldd.dll!00630069()    
                   aticaldd.dll!00530078()    
                   aticaldd.dll!00630069()    
                   aticaldd.dll!0066006f()    
                   aticaldd.dll!0066006f()    
                   aticaldd.dll!0066006f()    
                   aticaldd.dll!00630069()    
                   aticaldd.dll!00530078()    
                   aticaldd.dll!00630069()    
                   aticaldd.dll!0066006f()    
                   aticaldd.dll!0066006f()    
                   aticaldd.dll!0066006f()    
                   aticaldd.dll!00630069()    
                   aticaldd.dll!0066006f()    
                   aticaldd.dll!0066006f()    
                   aticaldd.dll!0066006f()    
                   aticaldd.dll!0066006f()    
                   aticaldd.dll!00630069()    
                   aticaldd.dll!00530078()    
                   aticaldd.dll!00630069()    
                   aticaldd.dll!0066006f()

               

               

               

               

               

               

               

              Here is the call stack of "binomial_option"

               

                   brook_cal.dll!003da9d0()    
                   [Frames below may be incorrect and/or missing, no symbols loaded for brook_cal.dll]   
                   brook_cal.dll!003d3d07()    
                   msvcr80d.dll!10203db4()    
                   msvcr80d.dll!1021e1af()    
                   msvcr80d.dll!1026912c()    
                   brook_cal.dll!003dd944()    
                   brook.dll!1000fb4b()    
                   brook.dll!10018635()    
              >    binomial_option_d.exe!brook::Stream<float4>::read(const void * ptr=0x0012fea4, const char * flags=0x0012fed0)  Line 161    C++
                   binomial_option_d.exe!_FatalAppExitA@8()  + 0xe5f bytes    C++
                   binomial_option_d.exe!_FatalAppExitA@8()  + 0xdfa bytes    C++
                   binomial_option_d.exe!_FatalAppExitA@8()  + 0xf1c bytes    C++
                   binomial_option_d.exe!004111f9()    
                   binomial_option_d.exe!mainCRTStartup()  Line 403    C
                   kernel32.dll!77e6f23b()    
                   aticaldd.dll!004f0044()    
                   aticaldd.dll!00650072()    
                   aticaldd.dll!00660063()    
                   aticaldd.dll!006f0069()    
                   aticaldd.dll!006e006f()    
                   aticaldd.dll!004f0044()    
                   aticaldd.dll!006f0069()    
                   aticaldd.dll!006f0069()    
                   aticaldd.dll!006f0069()    
                   aticaldd.dll!006f0069()    
                   aticaldd.dll!006e006f()    
                   aticaldd.dll!004f0044()    
                   aticaldd.dll!006f0069()    
                   aticaldd.dll!006f0069()    
                   aticaldd.dll!006f0069()    
                   aticaldd.dll!006f0069()    
                   aticaldd.dll!006e006f()    
                   aticaldd.dll!006e006f()    
                   aticaldd.dll!006e006f()    
                   aticaldd.dll!006e006f()    
                   aticaldd.dll!006e006f()    
                   aticaldd.dll!00660063()    
                   aticaldd.dll!006e006f()    
                   aticaldd.dll!006e006f()    
                   aticaldd.dll!006e006f()    
                   aticaldd.dll!004f0044()    
                   aticaldd.dll!006e006f()    
                   aticaldd.dll!00660063()    
                   aticaldd.dll!006e006f()    
                   aticaldd.dll!00660063()    
                   aticaldd.dll!006f0069()    
                   aticaldd.dll!006f0069()    
                   aticaldd.dll!006f0069()    
                   aticaldd.dll!006f0069()    
                   aticaldd.dll!006e006f()    
                   aticaldd.dll!004f0044()    
                   aticaldd.dll!006f0069()    
                   aticaldd.dll!006f0069()    
                   aticaldd.dll!006f0069()    
                   aticaldd.dll!006f0069()    
                   aticaldd.dll!006e006f()    
                   aticaldd.dll!00660063()    
                   aticaldd.dll!004f0044()    
                   aticaldd.dll!004f0044()    
                   aticaldd.dll!006f0063()    
                   aticaldd.dll!004f0044()    
                   aticaldd.dll!006f0063()    
                   aticaldd.dll!004f0044()    
                   aticaldd.dll!004f0044()    
                   aticaldd.dll!004f0044()    
                   aticaldd.dll!004f0044()    
                   aticaldd.dll!004f0044()    
                   aticaldd.dll!004f0044()    
                   aticaldd.dll!006f0063()    
                   aticaldd.dll!006f0063()    
                   aticaldd.dll!006f0063()    
                   aticaldd.dll!006f0063()    
                   aticaldd.dll!006f0063()    
                   aticaldd.dll!006f0063()    
                   aticaldd.dll!006f0063()    
                   aticaldd.dll!00650072()    
                   aticaldd.dll!00650072()    
                   aticaldd.dll!006f0063()    
                   aticaldd.dll!006f0063()    
                   aticaldd.dll!00640064()    
                   aticaldd.dll!00650072()    
                   aticaldd.dll!00640064()    
                   aticaldd.dll!00650072()    
                   aticaldd.dll!006f0063()    
                   aticaldd.dll!006e006f()    
                   aticaldd.dll!006e006f()    
                   aticaldd.dll!006f0063()    
                   aticaldd.dll!006f0063()    
                   aticaldd.dll!006e006f()    
                   aticaldd.dll!006e006f()    
                   aticaldd.dll!006f0063()    
                   aticaldd.dll!006e006f()    
                   aticaldd.dll!006e006f()    
                   aticaldd.dll!006f0063()    
                   aticaldd.dll!006f0063()    
                   aticaldd.dll!006f0063()    
                   aticaldd.dll!006f0063()

               

               

              many other samples are not listed

               

              All problems seem to be related with "streamdef.h ".

                  ////////////////////////////////////////////////////////////////////////////////
                  //!
                  //! \brief Transfer data from application to backend specific device
                  //!
                  //! \param ptr Application pointer
                  //!
                  ////////////////////////////////////////////////////////////////////////////////

                  template<class T>
                  void
                  Stream<T>::read(const void* ptr, const char* flags)
                  {
                      _stream->read(ptr, flags);
                  }

            • 'The memory could not be "read"' problem
              DonReba

              I get this crash with 1.4 in Vista x86 and x64. It occurs randomly, even in identical runs.