mrduck wrote:Pritpal and Roberto, please test this:
open hbide and edit a prg file
open notepad
in hbide select part of the text, rightclick, copy
go to notepad, do a paste... it will work
close hbide, I and Roberto get a GPF... Pritpal doesn't
go to notepad and try to paste: I don't paste anything, like if clipboard is now empty
Pritpal, what happens to you ?
I did browse source code and did some tests... I could not find any problem at the moment and QClipboard is correctly never "delete"d
Exactly as you descrbided except for the GPF.
NOTE: QClipboard() is not constructed with "new()". It returns a pointer to QApplication::clipboard(), so have never to be detroyed.
Please check after this change:
2010-10-20 17:02 UTC-0800 Pritpal Bedi (
bedipritpal@hotmail.com)
* contrib/hbqt/qscintilla/qth/QsciAbstractAPIs.qth
* contrib/hbqt/qscintilla/qth/QsciCommand.qth
* contrib/hbqt/qscintilla/qth/QsciCommandSet.qth
* contrib/hbqt/qscintilla/qth/QsciLexer.qth
* contrib/hbqt/qtdesigner/qth/QDesignerActionEditorInterface.qth
* contrib/hbqt/qtdesigner/qth/QDesignerFormWindowCursorInterface.qth
* contrib/hbqt/qtdesigner/qth/QDesignerFormWindowInterface.qth
* contrib/hbqt/qtdesigner/qth/QDesignerFormWindowManagerInterface.qth
* contrib/hbqt/qtdesigner/qth/QDesignerObjectInspectorInterface.qth
* contrib/hbqt/qtdesigner/qth/QDesignerPropertyEditorInterface.qth
* contrib/hbqt/qtdesigner/qth/QDesignerWidgetBoxInterface.qth
* contrib/hbqt/qtgui/qth/QApplication.qth
+ Added: Constructor = no.
* contrib/hbqt/qtgui/qth/QClipboard.qth
+ Added: Constructor = no.
QClipboard() does not have constructor so it has never to be released.
Maybe this fixes the bug reported on HMG forums.
* contrib/hbqt/qtgui/g/QClipboard.cpp
* Re-generated.
* contrib/hbqt/utils/hbqtgen.prg
+ Introduced: ::isDetached member pulled from .qth header.