View Issue Details

IDProjectCategoryView StatusLast Update
0002800JEDI VCL00 JVCL Componentspublic2005-04-12 02:40
ReporteranonymousAssigned Toobones 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version2.10 
Target VersionFixed in Version3.10 
Summary0002800: TJvMemoryData.LoadFromDataSet crashes with an empty inputfile
DescriptionIf TJvMemoryData.LoadFromDataSet is supplied with an empty inputfile, it crashes at the end when trying to go back to the original position in the inputfile.

The patch I use is (see line marked with BDR):

  finally
    // move back to where we started from
    if not Source.IsEmpty (*** BDR *)
    then if Source.BookmarkValid(SB) then
            begin
              Source.GotoBookmark(SB);
              Source.FreeBookmark(SB);
            end;
    if not SourceActive then
      Source.Close;
    Source.EnableControls;
    FSaveLoadState := slsNone;
  end;
Additional Informationyou can contact me at b.roovere@chello.nl
TagsNo tags attached.

Activities

obones

2005-04-12 02:40

administrator   ~0006916

This is now fixed in CVS.

Issue History

Date Modified Username Field Change
2005-03-25 08:08 anonymous New Issue
2005-04-12 02:40 obones Status new => resolved
2005-04-12 02:40 obones Resolution open => fixed
2005-04-12 02:40 obones Assigned To => obones
2005-04-12 02:40 obones Note Added: 0006916