Print Thread
Page 2 of 3 1 2 3
Re: Application crash without exception on LogOff when busy
#6111 03/08/04 12:05 PM
Joined: Feb 2004
Posts: 41
R
Ralf Offline OP
Member
OP Offline
Member
R
Joined: Feb 2004
Posts: 41
You can reproduce it the way I described above...

Quote: "You can add the record from SQL+ or with the button 'Add Record' that adds a record to the testtable. Then press the execute button, which inserts the same record in the same table with another session from a thread."

So first press the button 'Add Record' and then press the other button. Make sure the table is empty.

Re: Application crash without exception on LogOff when busy
#6112 03/08/04 11:04 PM
Joined: Aug 1999
Posts: 22,208
Member
Offline
Member
Joined: Aug 1999
Posts: 22,208
This does not immediately cause a problem. If I try to close the application I get an ORA-00001 error because the session is logged off and the transaction is committed.


Marco Kalter
Allround Automations
Re: Application crash without exception on LogOff when busy
#6113 03/09/04 03:34 PM
Joined: Feb 2004
Posts: 41
R
Ralf Offline OP
Member
OP Offline
Member
R
Joined: Feb 2004
Posts: 41
My mistake. The timer is not enabled, when running the thread. Adjusted test-project:

Test Project

Just tried it with the newest evaluation version (4.0.4) and pressing the second button makes the application hang. Using our version (3.4.4) the application exits without an exception.

Can you please look at it?

Thanks.

Re: Application crash without exception on LogOff when busy
#6114 03/11/04 11:32 AM
Joined: Feb 2004
Posts: 41
R
Ralf Offline OP
Member
OP Offline
Member
R
Joined: Feb 2004
Posts: 41
Can you please look at it?
Our database server is 'randomly' crashing, which isn't very convenient for connected clients...

Re: Application crash without exception on LogOff when busy
#6115 03/11/04 10:36 PM
Joined: Aug 1999
Posts: 22,208
Member
Offline
Member
Joined: Aug 1999
Posts: 22,208
I will check it out tomorrow.


Marco Kalter
Allround Automations
Re: Application crash without exception on LogOff when busy
#6116 03/12/04 06:32 PM
Joined: Aug 1999
Posts: 22,208
Member
Offline
Member
Joined: Aug 1999
Posts: 22,208
I ran the demo, and it does indeed hang. This is because your timer event attempts to disconnect the session that is currently executing in the background thread. Like I said, this will lead to unpredictable results if ThreadSafe = False, and to a hangup if ThreadSafe = True. The LogOff must wait until the thread is finished executing the query.


Marco Kalter
Allround Automations
Re: Application crash without exception on LogOff when busy
#6117 03/12/04 07:27 PM
Joined: Feb 2004
Posts: 41
R
Ralf Offline OP
Member
OP Offline
Member
R
Joined: Feb 2004
Posts: 41
Putting the timer in the thread makes no difference... But maybe it's not really 'in' the thread. Aside from this: how can I check whether a session (a query or whatever) is still busy?

Re: Application crash without exception on LogOff when busy
#6118 03/16/04 12:42 AM
Joined: Aug 1999
Posts: 22,208
Member
Offline
Member
Joined: Aug 1999
Posts: 22,208
The timer event will always occur in the main thread, it does not matter where you create it.

To see if a session is busy, you would need to create your own administration. You could also simply check if your thread is suspended. Only then is it safe to access the session from the main thread.


Marco Kalter
Allround Automations
Re: Application crash without exception on LogOff when busy
#6119 03/16/04 01:04 PM
Joined: Oct 1999
Posts: 138
Eschborn, Germany
Member
Offline
Member
Joined: Oct 1999
Posts: 138
Eschborn, Germany
Hi Marco,

this was the reason why i asked for such a property some time ago wink
Any chance to get it someone ?

Greetings
Jens

Re: Application crash without exception on LogOff when busy
#6120 03/16/04 11:05 PM
Joined: Aug 1999
Posts: 22,208
Member
Offline
Member
Joined: Aug 1999
Posts: 22,208
I realized that when I wrote my previous reply wink . It's still on the to-do list.


Marco Kalter
Allround Automations
Page 2 of 3 1 2 3

Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.081s Queries: 14 (0.025s) Memory: 2.5573 MB (Peak: 3.0380 MB) Data Comp: Off Server Time: 2024-05-06 06:35:13 UTC
Valid HTML 5 and Valid CSS