Menu

#360 TPrintout no longer accepts null-pointer for title (regression in 6.32)

6.36
closed
1
2026-04-03
2017-01-10
No

In the string overhaul for 6.32 [r512], the type of TPrintout::Title was changed from _TCHAR* to owl_string (later renamed to tstring), and the corresponding parameter for the constructor, as well as TPrintout::SetTitle, was changed likewise. Now these functions no longer accept a null-pointer, which previously was well-defined. Passing a null pointer will now cause a crash.

This change is contrary to the policy stated in Strings in OWLNext, in which well-defined behaviour for null pointers should be preserved (i.e. by providing side-by-side overloads for LPCTSTR and tstring).

Workaround: Pass an empty string instead.

Related

Bugs: #355
Commit: [r512]
Wiki: OWLNext_Stable_Releases
Wiki: Strings_in_OWLNext

Discussion

  • Vidar Hasfjord

    Vidar Hasfjord - 2017-01-10
    • status: open --> pending
     
  • Vidar Hasfjord

    Vidar Hasfjord - 2017-01-15
    • Status: pending --> closed
     
  • Vidar Hasfjord

    Vidar Hasfjord - 2026-04-03
    • labels: Crash, Strings, API --> Crash, Strings, API, Regression
     
  • Vidar Hasfjord

    Vidar Hasfjord - 2026-04-03

    The fix for this issue was released in OWLNext 6.36.0 and OWLNext 6.44.0.

     

Log in to post a comment.

MongoDB Logo MongoDB