Chris Antos wrote

> i'm writing a hack that looks up information in a database.  it patches
> FldHandleEvent, and does a lookup on almost every keyDownEvent.
> 
> i thought i'd be clever and open the database once, and store the DmOpenRef
> in a feature (FtrSet) between calls to FldHandleEvent.  this works great,
> until i switch to another app.

Clever? The jury is still out. :)

When do you plan to close the database? How is anybody going to 
delete your (open) database if they wish to remove your hack? There 
are potentially problems with flashing the database (may not be 
appropriate anyway), installing a new version (ditto), or backing up 
the database withit marked as open.

I don't think that opening the database is going to slow your hack 
down much compared to the act of searching the database on every 
keyDown.

Murray Dowling
Deskfree Computing
http://www.deskfree.com/

Reply via email to