[Win32Lib] difficulty using doEvents?

new topic     » topic index » view thread      » older message » newer message

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"

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu