[Qt-interest] QWidget: Must construct a QApplication before a QPaintDevice
Brad Howes
howes at ll.mit.edu
Mon Aug 31 19:46:01 CEST 2009
On Aug 31, 2009, at 11:22 AM, Andre Somers wrote:
> I am experiencing a weird problem. When I compile my program with the
> release flag, I get the above error if I run it through the
> debugger. If
> I run it directly, it aborts with a code 3. However, when I compile a
> debug version of my program, the problem does not occur.
What compiler/OS are you running on? In my experience, crashes that
occur in an optimized build (I assume that is what you mean by
'release') vs. a debug build happen due to uninitialized memory or
invalid parameter count -- a quite common one in my C days was printf
() bugs. For C++, a couple of things come to mind: uninitialized POD
members, invalid assumptions on object lifetimes, race condition.
Brad
--
Brad Howes
Group 42
MIT Lincoln Laboratory • 244 Wood St. • Lexington, MA 02173
Phone: 781.981.5292 • Fax: 781.981.3495 • Secretary: 781.981.7420
More information about the Qt-interest-old
mailing list