View Issue Details

IDProjectCategoryView StatusLast Update
0006118JEDI VCL00 JVCL Componentspublic2015-09-14 13:20
ReporterSFAssigned Toobones 
PrioritynormalSeveritycrashReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.47 
Target VersionFixed in Version3.48 
Summary0006118: AutoSort in JvDBUltimGrid (2)
Descriptionprocedure RestoreGridPosition crash if the previously call to SaveGridPosition was unable to retreive bookmark info.
Solution: Check if Assigned(FSavedBookmark) as in:
 
procedure TJvDBUltimGrid.RestoreGridPosition(Mode: TResyncMode = [rmExact, rmCenter]);
begin
  if Assigned(FOnRestoreGridPosition) then
  begin
// if DataLink.DataSet.BookmarkValid(Pointer(FSavedBookmark)) then
    if (Assigned(FSavedBookmark)) and DataLink.DataSet.BookmarkValid(Pointer(FSavedBookmark)) then
      GotoBookmarkEx(DataLink.DataSet, Pointer(FSavedBookmark), [rmExact], False);

    DataLink.ActiveRecord := FSavedRowPos;
    FOnRestoreGridPosition(Self, Pointer(FSavedBookmark), FSavedRowPos);
  end
  else
// if DataLink.DataSet.BookmarkValid(Pointer(FSavedBookmark)) then
  if (Assigned(FSavedBookmark)) and DataLink.DataSet.BookmarkValid(Pointer(FSavedBookmark)) then
    GotoBookmarkEx(DataLink.DataSet, Pointer(FSavedBookmark), Mode, False);
end;
TagsNo tags attached.

Activities

obones

2013-12-13 10:50

administrator   ~0020721

Please try with the latest JVCL version in GIT (or daily zip) and then send us a zipped file containing the sources of an application showing the issue.

SF

2014-01-16 17:24

reporter   ~0020899

Fixed!

obones

2014-01-29 09:59

administrator   ~0020904

Thank you for your feedback

Issue History

Date Modified Username Field Change
2013-04-04 12:47 SF New Issue
2013-12-13 10:50 obones Note Added: 0020721
2013-12-13 10:50 obones Status new => feedback
2014-01-16 17:24 SF Note Added: 0020899
2014-01-29 09:59 obones Note Added: 0020904
2014-01-29 09:59 obones Status feedback => resolved
2014-01-29 09:59 obones Fixed in Version => Daily / GIT
2014-01-29 09:59 obones Resolution open => fixed
2014-01-29 09:59 obones Assigned To => obones
2015-09-14 13:20 obones Fixed in Version Daily / GIT => 3.48