octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #53899] [octave forge] (io) Octave crashes whe


From: Matthew Parkan
Subject: [Octave-bug-tracker] [bug #53899] [octave forge] (io) Octave crashes when writing large dbf files with dbfwrite
Date: Tue, 18 Sep 2018 08:23:25 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36

Follow-up Comment #6, bug #53899 (project octave):

Hi Philip,

sorry for the very late reply, but I had to write my phd in the meantime...

After some more testing of _dbfwrite_, I think I've determined the problem. It
seems that the crash is caused by the call to _datevec(date)_ rather than by
write speed. I've replaced it by:


t = now;
upd = datevec(t) - [1900, 0, 0, 0, 0, 0];


While trying to find the bug, I also made a few changes to the code which
might improve performance when writing large files (vectorizing data writing)

I've attached the updated version of _dbfwrite_ and the corresponding patch to
this comment. 

(file #45033, file #45034)
    _______________________________________________________

Additional Item Attachment:

File name: dbfwrite.m                     Size:6 KB
File name: dbfwrite.patch                 Size:5 KB


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?53899>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]