i have an error - connecting to outlook -3
due to my code
li_return = ole_outlook.ConnectToNewObject("outlook.application")
//Check for the return code
If li_return <> 0 Then
Messagebox("Error",'Connecting to Outlook'+String(li_return))
Destroy ole_outlook
Return -1
End If
plase share with me reason of error with solution
please
thanks
now
i am busy in some work so my powerbuilder is on but when i come back to powerbuilder work then error is accure that is dbprocess is dead
then i restart my powerbuilder then it is ok
can you please give the solution of "dbprocess is dead"
Which database are you using?
In Oracle, for example, you can set a parameter in the sqlnet.ora file too make the time out value bigger (can't remember which one it is right now).
Another thing you could do instead, is to do something with SQL in a timer event:
string ls_dummy
SELECT "dummy" INTO :ls_dummy FROM DUAL;
If you set the timer on your frame window (that is if your application is MDI based), then that would run every xx minutes. The database would notice the activity and not time out.
Another thing you can try is to not use a timer event, but do the select in the idle event of the application.
thanks for reply
yes i am suffering a timeout from the database.
My application is MDI based and i am using sql server ..
but my idle event code is
Idle(18000) //code
means database is dead after 5hours
but really, db dead error come in 15-20 minutes
what I do?