http://bugs.winehq.com/show_bug.cgi?id=1486
Summary: Dynamically created menus do not work in Delphi apps
Product: Wine
Version: 20030508
Platform: Other
URL: http://www.starsoft.fi/jarto/wine-menubug.tgz
OS/Version: Linux
Status: UNCONFIRMED
Severity: major
Priority: P2
Component: wine-misc
AssignedTo: wine-bugs(a)winehq.com
ReportedBy: jarto(a)starsoft.fi
If you create any menuitem in Delphi dynamically in TForm.Create, all menus stop
working in that form. Only the top menus are showed but they don't react to menu
clicks.
I made two small demos to demonstrate the bug. Both open a form with a menu and
a menuitem. MenuWorks.exe works, MenuBug.exe only shows the menu but refuses to
show the menuitem if clicked on the menu. The bug is reproducible always.
This bug is not only in the last wine build. I noticed it first October 2002 but
was able to find the reason and make a test app only now.
The tgz contains both executables and some traces created with --debugmsg
trace+menu and --debugmsg trace+win
Traces are run:
MenuBug: Start MenuBug.exe, click on the main menu and then close the form
MenuWorks: Start MenuWorks.exe, clikc on the main menu, select menuitem which
succesfully terminates the app.
The problems seems to be that MENU_FindItemByCoords doesn't find the Rect for
the top menu. My guess is that adding menus screwed them up somehow.
The bug exists in executables compiled with at least Delphi 5 and 7. I'm sure
that fixing this one lets us run many Delphi apps as they seem to work very well
with Wine otherwise.
--
Configure bugmail: http://bugs.winehq.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.winehq.com/show_bug.cgi?id=1469
------- Additional Comments From bon(a)elektron.ikp.physik.tu-darmstadt.de 2003-26-05 11:40 -------
I could successfully install on two machines.
After changing in ~/.wine/config [wine]
"Temp" = "l:\\temp"
to
"Temp" = "l:\\"
I could reproduce your behaviour.
"TEMP" = "l:" works.
Running with temp and tmp set to c: in Vmware/Nt40 succeeded however. Perhaps
DIR_Init should strip out trailing (back)slashes.
Retry
--
Configure bugmail: http://bugs.winehq.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
http://bugs.winehq.com/show_bug.cgi?id=1469
dclark(a)akamail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |wine-bugs(a)winehq.com
------- Additional Comments From dclark(a)akamail.com 2003-26-05 11:29 -------
Adding wine-bugs to the CC list, so that further posts are archived and make it
to gmane.
--
Configure bugmail: http://bugs.winehq.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
http://bugs.winehq.com/show_bug.cgi?id=1383
------- Additional Comments From mitchell_bloch(a)hotmail.com 2003-26-05 10:12 -------
This is the end of the install (using wineinstall gives the most detailed ending)
Also, I replaced /home/user with ${HOME}
--------------------------------------------------------------------------------
Created ${HOME}/.wine/config using default Wine configuration.
You probably want to review the file, though.
Compiling regedit...
make: Nothing to be done for `all'.
Preparing to install default Wine registry entries...
Installing default Wine registry entries...
wine: chdir to /tmp/.wine-bazald/server-2205-2dd64d : No such file or directory
Registry install failed.
--------------------------------------------------------------------------------
if created, it wants the directory to be readable only by the primary user
chmod 700
then it wants a socket inside the directory
where do I get a socket? -_-
--
Configure bugmail: http://bugs.winehq.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.winehq.com/show_bug.cgi?id=1469
mike(a)codeweavers.com changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|wine-bugs(a)winehq.com |mike(a)codeweavers.com
Status|ASSIGNED |NEW
--
Configure bugmail: http://bugs.winehq.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.winehq.com/show_bug.cgi?id=1469
mike_mccormack(a)start.com.au changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
------- Additional Comments From mike_mccormack(a)start.com.au 2003-26-05 00:14 -------
This bug is dependent on the current working directory.
Uwe's patch is correct, but the bug it fixes was masking another.
cwd = c:\
FindFirstFile("C:") -> INVALID_HANDLE_VALUE
cwd = c:\windows
FindFirstFile("c:") -> one entry -> "windows"
So it appears that:
cwd = c:\windows
FindFirstFile("c:")
is the same as
cwd = c:\
FindFirstFile("c:\windows")
interesting implementation hey?
--
Configure bugmail: http://bugs.winehq.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.winehq.com/show_bug.cgi?id=1469
------- Additional Comments From juan(a)virtual-orbis.com 2003-25-05 18:49 -------
distributed .wine/config file sets E: as /temp drive, then puts a line:
"Temp" = "e:\\" to point at it in [wine] section.
I tried removing \\ from e:\\ and the problem persists.
I reviewed distributed registry files and there is no mention of drive e: nor
E: and it doesn't matter because the installer is looking for %temp% (I assume)
that in this case is pointing to E:\. But, when I deleted the trailing "\"
behaved the same.
--
Configure bugmail: http://bugs.winehq.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.winehq.com/show_bug.cgi?id=1469
------- Additional Comments From juan(a)virtual-orbis.com 2003-25-05 17:50 -------
I tested it too with standard config files bundled with wine, in a windows-less
machine. It shows the same error complaining about E: (/temp) drive.
(I tried again, renaming existing .wine dir, and starting as first using it).
Does your try to run the winzip70.exe SETUP was succesful? (Bitte ;)
--
Configure bugmail: http://bugs.winehq.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.