Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#83 closed defect (invalid)

QWidget::create()

Reported by: Silvan Scherrer Owned by:
Priority: critical Milestone: Qt GA
Component: QtGui Version: 4.5.1 Beta 2
Severity: Keywords:
Cc:

Description

while testing blubbels i saw the following:
QWidget::create(): WinCreateWindow(WC_FRAME) failed with 0x00081034
QWidget::create(): WinCreateWindow failed with 0x00081001

when building the app as debug app all works

game.cpp needs a #ifndef Q_OS_OS2
search for use_sound = on;
and change this to

#ifndef Q_OS_OS2
use_sound = on;
#else
use_sound = false;
#endif

download:
http://sourceforge.net/settings/mirror_choices?projectname=blubbels&filename=Blubbels/Blubbels%200.9/blubbels-0.9.tar.gz

Change History (3)

comment:1 by Dmitry A. Kuminov, 15 years ago

Resolution: invalid
Status: newclosed

0x00081034 is PMERR_INVALID_RESOURCE_FORMAT... ok, everything is clear to me.

First, qmake4 had a couple of bugs regarding to RC_FILE processing so that RC.EXE would never be correctly called (fixed r193, r194).

Second, it seems that you tried to manually attach the application icon (blubbels.ico) after patching the .rc file accordingly to the release version of the .exe file. This is apparently wrong as the icon is a Windows icon and not an OS/2 icon. As a result, you got a resource of the wrong format embedded into the executable which PM tried to read at startup (since it was marked as the main application icon in the .rc file), failed to do this and honestly reported about it.

Needless to say that if you comment out RC_FILE in blubbels.pro the problem doesn't show up and both the release and the debug versions work well. Not actually a bug, though it caused a couple of other bugs to be spotted.

See also #81 and #82.

comment:2 by Silvan Scherrer, 15 years ago

thats likely the problem, as in the debugversion i had no .res attached.

not nice from rc, that it doesn't tell it's a wrong icon format.

but at least some other bugs are spoted out by this, so it wasn't completely useless :)

comment:3 by Silvan Scherrer, 15 years ago

just compiled Qt again and also blubbels. now all is ok. all RC statements work as expected. of course i had to add a os2 format ico :) which is not a problem, as pmview does convert from win ico to os2 ico nicely.

Note: See TracTickets for help on using tickets.