Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB 6
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 13th, 2003, 10:25 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: McPherson, Kansas, USA.
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
Reply With Quote
  #2 (permalink)  
Old June 13th, 2003, 10:33 AM
Friend of Wrox
Points: 7,395, Level: 36
Points: 7,395, Level: 36 Points: 7,395, Level: 36 Points: 7,395, Level: 36
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Capital Federal, , Argentina.
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
Reply With Quote
  #3 (permalink)  
Old June 13th, 2003, 12:26 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: McPherson, Kansas, USA.
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
Reply With Quote
  #4 (permalink)  
Old June 13th, 2003, 01:24 PM
Friend of Wrox
Points: 7,395, Level: 36
Points: 7,395, Level: 36 Points: 7,395, Level: 36 Points: 7,395, Level: 36
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Capital Federal, , Argentina.
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
Reply With Quote
  #5 (permalink)  
Old June 13th, 2003, 01:31 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: McPherson, Kansas, USA.
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 07:45 AM.


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