Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9008

Re: Restart() function crashing

$
0
0
What OS version? What database are you connected to?

Windows 8.1 Pro

Sql Server 2005

PowerBuilder Classic Version 12.5.2 Build 5583


 

What is the app doing before the Restart? What event calls it?

 

Before it is called, a physical network disconnect occurs and it enters the DBError event of the parent transaction object. It than loops through disconnect, connect, sleeping 10 seconds, and then testing the database connection until the database connection works. After that, a Restart() is called.

 

** Manually disconnect network connection **

dw_abc.Retrieve()

** General Network Error messagebox pops up **

uo_transaction - DBError()

{

if code = 11 then

  messagebox("Reconnecting to database...", "")

 

  do

    this.test_sql() // function that runs simple SQL to test database connection

 

    if this.SQLCode < 0 then

      sleep(10)

      DISCONNECT using this;

      CONNECT using this;

    end if

  loop while this.SQLCode < 0

 

  messagebox("Connected! - Restarting abc...", "")

  Restart()

end if

return code

}

** I get the last message box and after clicking it the application fatally crashes at Restart() - "abc.exe has stopped working"**


Viewing all articles
Browse latest Browse all 9008

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>