I would have thought (hoped) so but there were too many complaints when that flag was used - mainly because it meant in-use files (mainly Outlook files) could not be zipped. Perhaps for future versions I need an extra AddOption (addShareAny) so the default case would be to use the logical FILE_SHARE_READ. Russell Peters On Wed, Aug 4, 2010 at 10:06 AM, James Turner <james.d.h.turner@xxxxxxxxxxxx > wrote: > Surely, if the file being compressed is opened using FILE_SHARE_READ > this would ensure that it does not change while compression is taking > place. > > -- James Turner > > > R Peters wrote: > > I need to set up a proper test but checking the code you will only get > that > > warning if it managed to open the file but the file length is altered > while > > the dll is compressing it. > > It is only supposed to be a warning so does not generate an OnSkipped > event > > (the file was zipped although it is likely the contents is wrong). > > > > For some reason you seem to be getting a fatal error afterward which > would > > be the reason compression is aborted. > > > > A few questions to set up a test- > > 1. What version of Windows? > > 2. What error does it finish with (preferably the DllError). > > 3. Does it happen each time. > > 4. Are you encrypting to the file. > > > > It is never a good idea to zip an in-use file, also not a good idea to > rely > > on file access settings to prevent zipping. > > Russell Peters > > > > On Tue, Aug 3, 2010 at 6:16 PM, Allan Fernandes < > allan_fernandes@xxxxxxxxxxx > > > >> wrote: > >> > > > > > >> Hi Russell, > >> > >> During compression, if any one File is open exclusively then OnMessage > >> event > >> gives 'File Size changed while zipping' and the control does not come > into > >> OnSkipped event. I have tried making all the NoSkipping options=True. > >> > >> Worst still, is that the compression is aborted and Zip disappears. > >> Please treat this matter as urgent. > >> > >> I am using Delphi 2007 with ZipMaster 1.9.0.0095 > >> > >> Regards > >> Allan > >> > >> > >> > >> > >> > >> ----------- > >> To unsubscribe from this list, send an empty e-mail > >> message to: > >> delphizip-request@xxxxxxxxxxxxx > >> and put the word unsubscribe in the subject. > >> > >> > > > > > > ----------- > > To unsubscribe from this list, send an empty e-mail > > message to: > > delphizip-request@xxxxxxxxxxxxx > > and put the word unsubscribe in the subject. > > > > > ----------- > To unsubscribe from this list, send an empty e-mail > message to: > delphizip-request@xxxxxxxxxxxxx > and put the word unsubscribe in the subject. > ----------- To unsubscribe from this list, send an empty e-mail message to: delphizip-request@xxxxxxxxxxxxx and put the word unsubscribe in the subject.