我们的一套进销存的软件,出现EAccessViolation错误。project raised exception class EAccessViolation with message 'Access Violationat address 0049e7d6 in module 'dightsale.exe' . read of address 00000000.'在帮助里面我查到了这些东西,找到了错误,但是我不知道怎么解决这个错误,EAccessViolation is raised when an application•Dereferences a nil pointer.
•Writes to a code page.
•Attempts to access a memory address for which there is no virtual memory allocated to the application.唉,还是经验不够,请大家帮一下忙。

解决方案 »

  1.   

    这样的错误一般情况下是没有加载,就进行了调用,但是delphi提示错误大致方位是正确的,你可以设置断点,或者进行单步跟踪!
      

  2.   

    楼上的说的没错,是有控件或其他文件、dll等没有加载,找找既是,不是大问题。
      

  3.   

    大家看看
    http://expert.csdn.net/Expert/topic/1706/1706457.xml?temp=.6291162
    谢了
      

  4.   

    谢谢大家,问题找到了。多谢 lovelwx(linwangxian) 的提示。我找datasource的选项。嗬嗬,竟然有六个表没有在SQL服务器里面。当然有错误。字段当然找不到。嗬嗬,结帖~~`