Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB 6
|
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 13th, 2003, 10:25 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 128
Thanks: 0
Thanked 0 Times in 0 Posts
Default Creating Temporay Files: Problem

There seems to be a problem with the master file table (MFT) when creating temporary files. It fragments the MFT and will not allow the system to boot up; NTLDR is Missing. Refrence: http://support.microsoft.com/default...b;en-us;320397 and http://support.microsoft.com/default...b;en-us;174619

I have created a document management apllication that allows users to check in folders containing documents of various file types. One of the methods I used to safeguard the project folder is to create a duplicate folder. I am using the File System Objects to manage\manipulate the files. The transfer of files from the project folder to the doc manager is done against the temp directory. In the event the process fails restoration is a matter of rolling back the data transaction, deleting the newly added files, deleting the temp directory and the users project folder is left unchanged. If the transfer takes place successfully then the temp dir and the project folder are both deleted.

In addition files that exist in the doc managers vault are renamed and flagged for deletion prior to being replaced by a revision. After the project folder is successfully transfered then files flagged for deletion are deleted. Restoration in event of an error invloves renaming the file.

I know one alternative would be to simply transfer files from the project folder to the doc managers vault. But the files are going through a compression routine and if something were to happen mid-stream it would not be pretty. The documents in the project folder are very valuable and need to be protected against error.

If you have any ideas on a better way to safeguard the documents or any knowledge of the stated problem with the NTLDR file missing I would like to here from you.

Thanks in advance.

Larry




Larry Asher
__________________
Larry Asher
 
Old June 13th, 2003, 10:33 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

hi there..
where is the problem?? after you copy a new file your system hangs up and doesn't even reboot??

Gonzalo Bianchi
 
Old June 13th, 2003, 12:26 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 128
Thanks: 0
Thanked 0 Times in 0 Posts
Default

No, the program executes fine. The problem is over time the MFT becomes fragmented due to all of the temproary files that have been created and deleted. Then at some unknown time when the computer is restarted it will not boot up because the NTLDR file is missing. It is like a time bomb with an unpredicatble timer. It has taken about three months to be able to identify the problem. The tech notes listed in the initial post describe the problem well.

Larry Asher
 
Old June 13th, 2003, 01:24 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

i read the links you posted before.. but if i don't missunderstood them it only affects files on the root folders..

are you creating many files in the root???

Gonzalo Bianchi
 
Old June 13th, 2003, 01:31 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 128
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Well, that is kind one of the questions I had what do they actually mean when they talk about the root folder?

The way the application works is each user has an account and they specifiy a default directory, using browse for folders. So, no I am not explicity writing to the root folder. However, In reading the second tech note I was lead to believe the root folder may be the same as the MFT. And the fact the MFT receives an entry for each file created would indirectly be writing to the root folder. But I cannot verify I understand it correctly. And if I do, I cannot really control writing to the root folder since it is inherient to the OS.

Thank you for your interest,


Larry Asher





Similar Threads
Thread Thread Starter Forum Replies Last Post
creating read-only files Fat_and_immoral Excel VBA 4 December 20th, 2006 09:24 AM
Need help w/ creating PDF files in Excel ArtDecade VB.NET 2002/2003 Basics 2 June 14th, 2006 11:06 PM
Creating PDF Files aldwinenriquez ASP.NET 1.0 and 1.1 Professional 3 January 12th, 2006 06:43 AM
Creating Files xchemicalbeatz VB.NET 2002/2003 Basics 6 April 14th, 2005 08:24 AM
Creating setup files Ali A Al Amudi Beginning VB 6 5 March 6th, 2005 01:40 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.