1. [Win32Lib] difficulty using doEvents?
- Posted by Dan Moyer <DANIELMOYER at prodigy.net> Jun 20, 2002
- 477 views
This is a multi-part message in MIME format. ------=_NextPart_000_0012_01C218AB.EB352C80 charset="iso-8859-1" Derek, anyone, I wrapped a windows gui around Ricardo Forno's file compare utility, and am trying to give it the ability to be stopped in mid-compare by the user, using doEvents. My effort works, the first few times, but if the user starts & stops the comparing repeatedly (for the same selected files), I get a very strange error message, "can't create error message file: ex.err". This happens using both Win32Lib 57.6 & 57.8. I've attached the zipped program. -- d1: trying to make it able to be stopped in mid-compare by user, -- using "doEvents", and "StopIt" as a flag; -- d2: put a *bunch* of "doEvents(0)" with "if StopIt then return end if" -- after it, in all main difference seeking procedures; -- BUG: -- works, UNLESS you do start/stop compare over & over again, -- in which case I get an error message, at about the 9th start/stop, -- "can't create error message file: ex.err". Any thoughts? BTW, the program has two buttons for selecting each file to be compared, but the FIRST button can utilize multiple selections in the open file dialog. This is convenient if you're comparing files which are not in the directory first presented by the open files dialog, but are in the same directory, saves finding the target directory twice. Dan Moyer ------=_NextPart_000_0012_01C218AB.EB352C80 Content-Type: application/x-zip-compressed; name="FC12d2.zip"
2. Re: [Win32Lib] difficulty using doEvents?
- Posted by pampeano at rocketmail.com Jun 21, 2002
- 455 views
Hi Dan, Your problem is that you're not closing the file opened in ReadIn function, just add a close(f) before returning. ===== Best Regards, Guillermo Bonvehi AKA: Knixeur - Caballero Rojo
3. Re: [Win32Lib] difficulty using doEvents?
- Posted by Dan Moyer <DANIELMOYER at prodigy.net> Jun 21, 2002
- 474 views
Guillermo, Oh! I got confused by not getting any error message at all, except for it not being able to write to the err file, but I guess if I had tried *following the code*, I probably would/should have seen it. Thanks :) Dan ----- Original Message ----- From: <pampeano at rocketmail.com> To: "EUforum" <EUforum at topica.com> Sent: Friday, June 21, 2002 12:12 AM Subject: Re: [Win32Lib] difficulty using doEvents? > > Hi Dan, > Your problem is that you're not closing the file opened in ReadIn > function, just add a close(f) before returning. > > ===== > Best Regards, > Guillermo Bonvehi > AKA: Knixeur - Caballero Rojo > >