Heh... should've mentioned I tried it under two builds of ActivePerl and
v558 and 665 of Win32::GUI :) What I have found is that if I load up
DestroyWindow via Win32::API, and then do an "exit", right afterwards, it
disappears (presumably because the perl environment thinks it's dying, and
cleans up after itself)... but at least in the script host environment I'm
in, calling exit doesn't seem to do much of anything except keep it from
crashing :)

        Thanks for the suggestion regarding TK, however, it's very important in
this particular instance that everthing look "Windowsy", my users are very
change-phobic and they'll probably be frightened of anything unfamiliar :)

        I'll give the $_ trick a shot and see if it does anything for me.

-chris

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
Piske, Harald
Sent: Monday, July 01, 2002 11:21 AM
To: 'Chris Ingrassia'; perl-win32-gui-users@lists.sourceforge.net
Subject: RE: [perl-win32-gui-users] crashes...


Win32-GUI Versions 0.558 and 0.665 are totally different, the latter being a
thorough rework. If you use one, try the other to see if it helps.

I've made a post the other day about GUI crashing when I use DoEvents() -
like you, I could only do some magic to shift the crash to a different
point. What seemed to help: putting something into $_ (without using local).
Maybe there IS an issue with garcol as you suggest because at the point
where I experienced crashes, the $_ from the caller usually held a reference
to a complex struct, so doing $_=0 must have caused some cleanups.

Here's something you might not like: I've tested the crashy script under
GUI558 and 665, Win2k and 98, Perl618 and 631 and many combinations of those
and the crash doesn't seem to care.

Here's another idea you might not like: when I came to a dead end in another
project (not due to GUI crashing, but because it fails with some graphics
elements under 98), I switched to Tk. Sometimes, depending on the project,
personal taste and probably moonlight, it beats VB and if you already have
the core functionality in Perl, it may be worth the effort of picking up Tk,
if you're not yet familiar with it. Its most commonly used window manager
('pack') is less like GUI and more like Java in that it arranges "floating"
widgets, but there are also ways to use fixed pixel coords.

I'm not too good in Tk myself, I don't know if it comes with all the widgets
of windows (haven't seen combo boxes yet and did not need accelerators). The
trick seems to be NOT to try and make it do exactly what you're used from
GUI but just take what it offers - I found some things a lot easier than
with GUI and some more tricky.

Have fun,
Harald


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Perl-Win32-GUI-Users mailing list
Perl-Win32-GUI-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users


Reply via email to