Andrea, Robin, thank you for your support.
With your help, I managed to find the source of the bug
and get rid of it.
As hinted by both of you, the problem was not related to
wxPython but to Py2exe. I had used the new option
"--bundle 1" that packs all the DLLs in the library.zip,
thus creating only 3 or 4 files which is cleaner to
distribute. This proved to be the cause of the bug as
removing this option enabled the exe file to run without
too many problems. Now I just need to tackle a few unicode
problems but it is already much more familiar ground to
me...
For what it's worth, it is my first real world application
in wxPython. Up until now I was developping in Tkinter.
The reason that caused me to switch, was the better
behaviour regarding events generated in a separate thread.
I have to admit that the transition went much smoother
than I expected, especially thanks to the great
combination SPE+wxGlade. (I just miss the good old Tkinter
Canvas and it took me some time to figure out how to
implement something similar).
Thank you once again for your help.
F. Capiez
キャピエ ファブリス wrote:
Dear list,
I have developped an application with wxpython under
WinXPsp2 which include a wx.ListCtrl.
It runs perfectly fine as a python script as well as a
Py2exed compiled file on my development platform.
However, if I test the py2exed version on a win98
platform, I get the following error :Traceback (most recent call last):
File "BNTreaderWx.py", line 1546, in ?
File "BNTreaderWx.py", line 838, in __init__
File "BNTreaderWx.py", line 729, in __init__
File "wx\_controls.pyc", line 4502, in __init__
wx._core.PyAssertionError: C++ assertion
"wxAssertFailure"
failed in ..\..\src\msw\control.cpp(162):
CreateWindowEx("SysListView32", flags=5201034d,
ex=00000200) failedAnyone knows where this comes from and how to get rid
of
it ? A lot of my users depend on win98 so it is quite a
problem for me.
I tried to google this list with "SysListView32" but
could
not find anything.
It's the first time we've see this message, so there is
nothing for
google to find in this list about it.
Do you get the same error if you run the app on a win98
machine without
py2exe? Is the demo able to run on that machine?
(Especially the
ListCtrl samples.)
Does the machine have an updated common controls DLL?
You can get an
installer here:
http://www.microsoft.com/downloads/details.aspx?FamilyID=6f94d31a-d1e0-4658-a566-93af0d8d4a1e&DisplayLang=enmore details concerning my environment :
I use Python 2.42 with wxPython 2.6.2.1 (unicode
version
as my soft include Japanese characters, I have included
unicows.dll)Unfortunatly the MSLU/unicows solution is not as
bulletproof as it leads
leads us to believe... I've never seen this kind of
problem from it
though. Usually it is missing messages, or other little
things that can
add up. You may want to do some experiments on the win98
box with the
ansi vs. the unicode builds of wxPython.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with
wxPython!
···
--------------------------------------
GANBARE! NIPPON!
Yahoo! JAPAN JOC OFFICIAL INTERNET PORTAL SITE PARTNER
http://pr.mail.yahoo.co.jp/ganbare-nippon/