Skip to Content
avatar image
Former Member

General Failure on Sign-On

I get the error message 'General Failure' when I try to get the Connection Context from the UI 6.5 using Delphi 6.

...

// Acquire the connection context cookie from the DI API.

Cookie := vCmp.GetContextCookie; '

Memo1.Lines.Add(SBO_Connection.Company.DatabaseName); // works fine

//Retrieve the connection context string from the UI API using the acquired cookie.

conStr:=SBO_Connection.Company.GetConnectionContext(Cookie);

This call fails.

Has anyone an idea how to solve this problem?

Thanks

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Jul 19, 2004 at 08:34 PM

    Ensure the variables Cookie and conStr are of type WideString, not a standard String. I had the same problem. You need to be quite careful about the variable types when using Delphi.

    Add comment
    10|10000 characters needed characters exceeded