Page 1 of 1
Bookmarks - access violations on imporper use
Posted: Tue 25 Oct 2005 11:03
by Ludek
Sometimes, If I call GetBookmark, close the query, reopen the query and call BookmarkValid on this bookmark, I get an access violation. On some machines the program even crashes without any message.
Are you able to simply return "false" under this condition? It did work without any problems with BDE.
Posted: Thu 27 Oct 2005 06:23
by Ikar
> Are you able to simply return "false" under this condition?
It's quite difficult. After closing dataset bookmarks are not valid. Use key fields instead.
Ludek Stauber
Posted: Wed 02 Nov 2005 13:55
by Guest
Do you mean the ProviderFlags.pfInKey? Or something else?
Is there a convenient way to store the value of all this keys to a variable and to jump to their position after? Like using TBookmark: GetBookmark, GotoBookmark, FreeBookmark? Or do I have to program it myself - iterate over fields, check this flag, store to a variant array and then Locate?
Posted: Wed 02 Nov 2005 15:40
by Ikar
Currently SDAC does not provide automation for Close..Open sequence.
To perform this task use Refresh instead of Close..Open.