Skip to Content
author's profile photo Former Member
Former Member

Error: Access violation at 02271d4a in module observerdll.dll read address

I am using Delphi 5, SAP DI API for SAP 2004.

On a users machine, when we try to connect, we get an error "Access violation at 02271d4a in module observerdll.dll read address 00000000".

Anyone know why they could be getting this error? And what I need to do to fix it?

thanks

Bill

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Feb 23, 2005 at 04:56 PM

    Hi,

    It seems that you haven't initialize an object.

    Can you post your code? Or where is the error?

    This happens just in one machine, and others works well?

    Ribeiro Santos

    Message was edited by: Ribeiro Santos

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 23, 2005 at 06:25 PM

    The problem is I have not been able to reproduce the problem on any of the machines in my office, this is only happening on a client machine. They have just the SAP client, and our program that uses the DI API.

    I have instructed my client to search for that dll, and try to rename it, and rerun it. Not sure whether this will fix it or not.

    Here is some example code I am using, I do not at this time know the exact point where the error is returning from, I assume from the Connect function.

    function TtcSAP.Connect: string;

    begin

    // return empty on success

    Result := '';

    try

    // make sure it was created

    if not Assigned(oCompany) then

    begin

    Result := 'Error creating Company object.';

    Exit;

    end;

    if oCompany.Connected then

    oCompany.Disconnect;

    // Specify the user name and password

    oCompany.UserName := sUserName;

    oCompany.Password := sPassword;

    oCompany.DbUserName := sDbUserName;

    oCompany.DbPassword := sDbPassword;

    oCompany.UseTrusted := bUseTrusted;

    // misc settins

    oCompany.language := ln_English;

    // Specify the Company database

    oCompany.CompanyDB := sCompanyDB;

    // specify the server

    oCompany.Server := sServer;

    // connect (0 = success)

    if oCompany.Connect() <> 0 then

    begin

    Result := GetLastError;

    if Trim(Result) = '' then

    Result := 'Connection failed.';

    end;

    except

    on E: Exception do

    Result := E.Message;

    end;

    end;

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 23, 2005 at 09:49 PM

    Some more info..

    The client did NOT find observerdll.dll on his machine. He does have the DI Server installed and running (not sure if that has anything to do with it).

    They are running SBO 6.70.178, 2004A, SP: 00 PL: 09

    Message was edited by: Bill Vanselow

    Message was edited by: Bill Vanselow

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      I just found out that the user had installed the lastest SAP DI API (PL9), than the version I was installing, and there was a conflict. I had them unregister and remove the older dll's, and it then all worked fine.

      Thanks for all your help!

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.