Einzelnen Beitrag anzeigen

Kas Ob.

Registriert seit: 3. Sep 2023
353 Beiträge
 
#6

AW: GNU C++ - wie Speicherfehler abfangen ?

  Alt 14. Aug 2024, 16:47
@paule32.jk , You miss handling QChar https://doc.qt.io/qt-6/qchar.html

It is not class like all others with constructor and destructor, it is simple 2 bytes type with methods, something like WChar in pascal with record helper, or simply a managed record that have only WChar/Char.

No need to delete it, unless you will declare it as referenced (aka dynamic).

In other words, if origin_obj ( https://github.com/paule32/fpc-qt/bl...har.cc#L10-L16 ) is local field, then you don't need to delete and you can't delete.
Kas
  Mit Zitat antworten Zitat