FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour dbskipper intermitent error
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
Re: dbskipper intermitent error
Posted: Fri Oct 16, 2009 07:34 AM

James

What i did to secure my browse is to add this

oBrwAPP:bGotFocus := {|| IF(SELECT("APPEL") = 0, (OBRWAPP := NIL,APP1:SetFocus(),APP1:PostMsg(WM_CLOSE),APP1 := NIL ) , ) }

Richard

http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: dbskipper intermitent error
Posted: Fri Oct 16, 2009 11:42 AM

Richard,

That looks like a nice workaround but it looks like the user is going to be quite surprised when the browse just automatically closes on them.

Here is how you can track down where the database is being closed. Create a transaction log file and record when each function of the buttons is being called and also when your workaround is being called. Then after a few days or a week you can look at the log file and see exactly were the workaround was called. The function immediately previous to that is where the database is being closed. Then you will know where to search.

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10

Continue the discussion