If you are a Power Builder developer and have any questions about using our products from Power Builder here is the place to post them.
Post Reply
Posts: 1
Joined: Mon Jan 09 2006


Post by hard_u »

I make user-object in application-server that uses dll file. Sometimes the user-object can't connect to the dll file. This application-server is used by many application-client (about 100 clients simultaneously). Here is the code:

oleobject ascon
integer ll_status
string msg

ascon = create OLEObject

ll_status = ascon.connecttonewobject( "BKPN.AS400OLE" )
IF ll_status <> 0 THEN
/* fails */
msg = "BKPN.AS400OLE of server failed. Contact your help desk"
/* succeeds */
end if

Any idea why this happens? Is there any solution?
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002

Post by Joan »


Your above question is not about one of our products but about OleObjects in general.

I guess this happens if two or more clients machine try to connect to the Ole object in the same time. The solution can be to manage multithreading in your application or to implement a kind of time delay between each connection to the Ole and the one that will follow.

I am sure that if you post this message to the forum of the Powerbuilder community the guys there will be of more help.

When you resolve this issue please post the solution here, i am sure it will help other developers.

Thank you.
Post Reply