http://bugs.winehq.org/show_bug.cgi?id=21475
Summary: TI Interactive application fails when attempting to display the TI math palette Product: Wine Version: 1.1.37 Platform: x86 URL: http://education.ti.com/downloads/files/computer_softw are/tiitrial.exe OS/Version: Linux Status: NEW Keywords: download Severity: normal Priority: P2 Component: ole32 AssignedTo: wine-bugs@winehq.org ReportedBy: arethusa26@gmail.com
Created an attachment (id=25861) --> (http://bugs.winehq.org/attachment.cgi?id=25861) TI Interactive +ole trace
With wine-1.1.37, after using winetricks to install vcrun6sp6 and installing the TI Interactive trial, launching TI Interactive, dismissing the trial and registration dialogs, and then pressing Ctrl+M (or doing Insert -> Math Box) yields a message box that states:
"Failed to create object. Make sure the object is entered in the system registry."
Using native ole32 from the dcom98 redist allows the TI Interactive application to display the TI math palette panel as expected. From the +relay log:
0009:Call ole32.OleCreate(0032e754,40a3fca8,00000001,00000000,00e62710,001b7938,00e626c8) ret=40a2b858 0009:trace:ole:OleCreate ({5af21a82-ca6e-11d2-9613-004033a5109d}, {00000000-0000-0000-c000-000000000046}, 1, (nil), 0xe62710, 0x1b7938, 0xe626c8) ... 0009:Ret ole32.OleCreate() retval=80070057 ret=40a2b858 ... 0009:Call KERNEL32.RaiseException(e06d7363,00000001,00000003,0032e64c) ret=40a09610
It seems that the failure of OleCreate is the culprit. A +ole log is attached.
http://bugs.winehq.org/show_bug.cgi?id=21475
--- Comment #1 from Nikolay Sivov bunglehead@gmail.com 2010-01-24 10:11:10 --- It's not clear at what stage it returns E_INVALIDARG. To get more info you could add more trace lines in OleCreate after each call that returns HRESULT.
But first you could check if {5af21a82-ca6e-11d2-9613-004033a5109d} is present in your registry.
http://bugs.winehq.org/show_bug.cgi?id=21475
--- Comment #2 from Andrew Nguyen arethusa26@gmail.com 2010-01-24 19:28:33 --- Interface {5af21a82-ca6e-11d2-9613-004033a5109d} is indeed registered. Some added traces to OleCreate show that the issue lies in dlls/ole32/ole2.c:2416-2421:
if (SUCCEEDED(hres2)) { DWORD dwConnection; hres = IOleCache_Cache(pOleCache, pFormatEtc, ADVF_PRIMEFIRST, &dwConnection); IOleCache_Release(pOleCache); }
with outcome:
trace:ole:OleCreate IUnknown_QueryInterface hres = 0x0 trace:ole:DataCache_Cache ((nil), 0x2, 0x32e908) trace:ole:OleCreate IOleCache_Cache hres = 0x80070057 trace:ole:OleCreate failure
It seems that the application passes OLERENDER_DRAW for renderopt but NULL for pFormatEtc, causing the IOleCache_Cache call to fail. Hacking the particular code snippet to ignore the return value of IOleCache_Cache allows the palette to be displayed.
http://bugs.winehq.org/show_bug.cgi?id=21475
--- Comment #3 from Nikolay Sivov bunglehead@gmail.com 2010-01-25 05:32:58 --- (In reply to comment #2)
It seems that the application passes OLERENDER_DRAW for renderopt but NULL for pFormatEtc, causing the IOleCache_Cache call to fail. Hacking the particular code snippet to ignore the return value of IOleCache_Cache allows the palette to be displayed.
Actually it's ok to have null pFormatEc in case of OLERENDER_DRAW, we even have tests for that.
Unfortunately can't help here, cause I'm absolutely unfamiliar with this api.
http://bugs.winehq.org/show_bug.cgi?id=21475
--- Comment #4 from Bruno Jesus 00cpxxx@gmail.com 2012-07-15 09:56:22 CDT --- Created attachment 41004 --> http://bugs.winehq.org/attachment.cgi?id=41004 wine 1.5.8 crash
The program no longer runs in wine 1.5.8. Backtrace attached. winetricks mfc42 needed to get the program installed correctly.
https://bugs.winehq.org/show_bug.cgi?id=21475
Ken Sharp imwellcushtymelike@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |Abandoned?
--- Comment #5 from Ken Sharp imwellcushtymelike@gmail.com --- Is this still an issue in Wine 1.7.45 or later?
https://bugs.winehq.org/show_bug.cgi?id=21475
super_man@post.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |super_man@post.com
--- Comment #6 from super_man@post.com --- Works here
you need to winetricks -q mfc42 before installing this application.
ctrl+m brigs a menu without error message.
wine 1.7.48(git)
https://bugs.winehq.org/show_bug.cgi?id=21475
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |91d91afb7d0f1806b1e79f2d45d | |9fa62df186048 Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #7 from Nikolay Sivov bunglehead@gmail.com --- This was fixed with http://source.winehq.org/git/wine.git/commit/91d91afb7d0f1806b1e79f2d45d9fa6....
https://bugs.winehq.org/show_bug.cgi?id=21475
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords|Abandoned? |
https://bugs.winehq.org/show_bug.cgi?id=21475
Michael Stefaniuc mstefani@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mstefani@redhat.com Target Milestone|--- |1.8.x
https://bugs.winehq.org/show_bug.cgi?id=21475
Michael Stefaniuc mstefani@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|1.8.x |---
https://bugs.winehq.org/show_bug.cgi?id=21475
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #8 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.9.6.