1. getFontDialog() Crashing
- Posted by Steve <bleak_outlook at hotmail.com> Aug 15, 2003
- 452 views
Here is the code: fontresult = getFontDialog(Window17) curr_font = fontresult[1] -- curr_font is a sequence setFont(Printer, curr_font, 12, Normal) It works perfectly on my computer (using winXP), but for my buddy who is using win98 the program crashes to his desktop. He has the latest euphoria interpreter, win32lib, and a .exw of the program. When I comment out the above code the program runs fine for him. Any ideas? Thanks, Steve
2. Re: getFontDialog() Crashing
- Posted by Pete Lomax <petelomax at blueyonder.co.uk> Aug 15, 2003
- 402 views
On Fri, 15 Aug 2003 01:29:22 +0000, Steve <bleak_outlook at hotmail.com> wrote: >fontresult =3D getFontDialog(Window17) >curr_font =3D fontresult[1] -- curr_font is a sequence > >setFont(Printer, curr_font, 12, Normal) > >It works perfectly on my computer (using winXP), but for my buddy who is= =20 >using win98 the program crashes to his desktop. He has the latest=20 >euphoria interpreter, win32lib, and a .exw of the program. >When I comment out the above code the program runs fine for him.=20 > >Any ideas? If you cancel the font dialogue, getFontDialog will return -1. So fontresult must be an object or you'll get a type check error, and even if it is, you'll get error attempt to subscript an atom on the next line, so you need an if not atom(fontresult) to catch it. If I don't cancel it, it appears to work fine on this win98, though I didn't try printing anything. Pete
3. Re: getFontDialog() Crashing
- Posted by Pete Lomax <petelomax at blueyonder.co.uk> Aug 16, 2003
- 439 views
On Sat, 16 Aug 2003 10:48:45 +0000, Steve <bleak_outlook at hotmail.com> wrote: > > >Hey, thanks for responding. > > That was good stuff but I guess my question is, Why does it run fine on= =20 >my computer but crash on his? Could it have something to do with a=20 >foreign dependancy? Maybe some windows library that win32lib requires=20 >that he may not have installed (for whatever reason). I am just trying=20 >to figure out why mine runs the program fine, despite what I do, yet his= =20 >crashes immediately after reaching the getFontDialog() function. What is the crash? Will your mate send you the [top ten lines of the] ex.err file? Can we have a look at it? Did your friend key escape to the font dialog?=20 Have you tried keying escape to the font dialog?=20 Does the font dialog in say Notepad crash on his kit?=20 (Stranger things have been so) Have you installed dependency walker and run it against comdlg32.dll? Do you want any more helpful suggestions? Pete