cancel
Showing results for 
Search instead for 
Did you mean: 

General Failure on Sign-On

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi Lita,

Thanks very much for your tip.

Now the Sign-On works fine.

Regards,

Gerold