Menu

#282 Problem with handling read-only files in TEditView and TRichEditView

8
open
DocView (6)
1
4 days ago
5 days ago
No

When a read-only file is opened in TEditView or TRichEditView, it can be edited, as the class does not have concept of read-only files (unlike TCoolEdit). When attempting to save the edit file, it shows error message "Unable to open the document" and then the application crashes with an unhandled exception.

See also [bugs:#646].

Related

Bugs: #646

Discussion

  • Ognyan Chernokozhev

    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,3 +1,3 @@
    -When a read-only file is opened in TEditView, it can be edited, as the class does not have concept of read-only files (unlike TCoolEdit). When attempting to save the edit file, it shows error "Unable to open the document" and then the application crashes with an unhandled exception.
    +When a read-only file is opened in TEditView, it can be edited, as the class does not have concept of read-only files (unlike TCoolEdit). When attempting to save the edit file, it shows error message "Unable to open the document" and then the application crashes with an unhandled exception.
    
     See also [bugs:#646].
    
     

    Related

    Bugs: #646

  • Ognyan Chernokozhev

    • summary: Problem with handling read-only files in TEditView --> Problem with handling read-only files in TEditView and TRichEditView
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,3 +1,3 @@
    -When a read-only file is opened in TEditView, it can be edited, as the class does not have concept of read-only files (unlike TCoolEdit). When attempting to save the edit file, it shows error message "Unable to open the document" and then the application crashes with an unhandled exception.
    +When a read-only file is opened in TEditView or TRichEditView, it can be edited, as the class does not have concept of read-only files (unlike TCoolEdit). When attempting to save the edit file, it shows error message "Unable to open the document" and then the application crashes with an unhandled exception.
    
     See also [bugs:#646].
    
     

    Related

    Bugs: #646

  • Ognyan Chernokozhev

    Note: this looks like a regression in the trunk. The same test works fine in 6.44 and 7.0.

     
  • Vidar Hasfjord

    Vidar Hasfjord - 4 days ago

    this looks like a regression in the trunk.

    If it is a regression internal to the trunk, not pertaining to any official release, I suggest you set the Private flag of the ticket. This is how I recently chose to do it while reviewing existing tickets, leaving the Regression label for problems in official releases only.

    What's the cause? More aggressive error checking with new exception thrown but not handled?

     

Anonymous
Anonymous

Add attachments
Cancel