Debugging GCK2.5 under wine

GCK2.5.9 works with wine (crossover office 2.01 version). The 2.5.9 update doesn't show the "Could not start the application because there is not enough memory" error. GCK starts up without any trouble and is partially usable. In fact it seems to be fully functional (including Deluxe import) with one big exception: new files cannot be created (quits upon selecting "File - New". The empty window box where you can select what type of GCK file you want to create (sequence, illustration, etc) is drawn with the title "New Window", but its not filled with content and the application quits. I have been submitting GCK2.5 to the wine compatibility database and the entry is under review. If they accept it, I'll post detailed installation instructions there.

To debug this error I started up the application with debugging output switched on:

/opt/cxoffice/bin/wine --debugmsg +all --workdir "/home/jeltsch/.cxoffice/dotwine/fake_windows/Program Files/Textco, Inc/Gene Construction Kit 2.5" "C://Program Files//Textco, Inc//Gene Construction Kit 2.5//GCK25.exe" 2> all_output

This created a 294.2 MB file called all_output. Now I am looking for the "New Window" string in the all_output file using grep:

grep -n "New Window" all_output > NewWindow_output

The two commands: "head NewWindow_output" and "tail NewWindow_output" show that the first occurrence of the "New Window" string appearsin line 3860667 and the last in line 4191321.

Presumably the error has occurred shortly before the program crashed that is between line 3860667 and 4191321 or shortly before that. So I just have too look for suspicious messages in this region (which is pretty big anyway...)

head --lines=4191321 all_output > all_output_head tail --lines=330655 all_output_head > all_output_tail

puts the lines that I should examine into a new file (all_output_tail):

3860667:000b:Call user32.CreateWindowExA(00000001,100fa7d0 "_ASI_THREED_",407d0c44 "New Window",84c800c0,00000043,000000cb,00000108,000000c5,00010022,00000000,00400000,00000000) ret=100bea37

[...]

4191321:000b:trace:message:SPY_ExitMessage (0x30030) L"New Window" message [000f] WM_PAINT returned 00000000