Crashes when Blob resize to zero

Directory Opus: 13.1
Script language: JScript

If I try to truncate Blob to zero, Directory Opus shows an out-of-memory error and will crash.

Steps:

  1. open CLI / Ad-Hoc Script Editor
  2. select Script interpreter to "JScript"
  3. run DOpus.Create().Blob(512).Resize(0);

I wrote some script to read the first 512 bytes and truncate on control chars. if the file starts with control chars, directory opus crashes. my workaround: use .Free() to truncate to zero.

1 Like

Fixed in the next update. Thanks for reporting it!

1 Like