--- In [email protected], "Brad Hall" <[EMAIL PROTECTED]> wrote: > > Hi all :-) > Has any1 heard of this prob happening before... > I'm using a Firebird DB (v. 1.4...) + connecting to it using the IB > components that ship with Delphi (Delphi 6 Ent), running XP. > There are no issues with datasets until I move to another application or > window, then the dataset in my app closes. > As I'm using dbGrids to display summarised info to the client, it looks > really bad when they have some results returned, then if they move focus > to another app or window not in my app, the results in the dbGrid > disappear as the dataset closes when they move focus back to my app. + > if I have a screen of info with scroll buttons to move between records > returned in the dataset, the scroll buttons no longer work as the > dataset is closed. > I have no probs as long as focus remains in my app. > > Any1 have any ideas why the datasets might be closing automatically?? > > Thanks :-)
1) FB 1.4 is so old that I think my kids are younger (just joking). Bin it and grab the latest 1.6n or jump to 2 2) IB is not Firebird. I have never had success using IB components. There are freeware, trialware, free for not commercial and fully commercial components out there for Firebird. 3) Put an pn before disconnect event handler and trace the disconnect event back to see what causes it. I would lay odds that you have something in an On Lost Focus event somewhere. Mick

