DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

Locked file BUG!

Started by Dr PR, December 03, 2013, 09:55:28 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Dr PR

V23.0
Win 7 Pro 64 SP1

I have been working on a drawing for a week or two (3.7 Mbytes). I opened it this morning and after it loaded I got a dialog box saying:

"DCAD3D MAX
D:\CLG5\Drawings\Winches\boat winch.dcd
This DesignCAD drawing is read only or locked for editing
by another user. It will be loaded as read only."

I am the Administrator and the ONLY user on the Win 7 machine - and it has no network connections. There is no "other user!"

When I made a change by adding two lines (V) and then tried to save the drawing I received this dialog:

"DCAD 3D MAX
Failed to save document."

This is a nasty BUG! Suddenly we can no longer work on files that represent hours of work!? I have files that I have been working on for 10 years. If V23 starts locking me out of my files the program will be worthless!

This happened after I opened an older file created in April 2011. I copied a part and pasted it into the new file.

****

I saved the file with the changes as "boat winch x.dcd" and then reopened the original and the modified files:

"boat winch.dcd" did not have the new lines

"boat winch x.dcd" did have the new lines.

So there is a way to recover the file (I think).

****

I opened the locked file with V22.1 on my XP machine and it opened OK.

****

DT, I'll send the locked file via email.

Phil
DesignCAD user since 1987

dcadRob

The lock is placed on the file when it it opened by a program. So DC thought that another program had the file open. Check to make sure another DC session is not running. If you are sure that no program has the file but it still won't open for editing, you need to reboot the computer because Windows may be confused about the locks.

Sending the file to DT should not reveal anything.

DrollTroll

Even if that file is locked for whatever reason, Save As or Save a Copy should still work, so long as it's not being saved to a locked folder.

Windows may have been trying to index the file.
If you're running any security software, it may have been scanning the file at that moment.
As dcadRob said, another instance of DesignCAD may have had the file open.

Nothing wrong with the file itself.
25 years with DesignCAD

Lar

Phil, this has happened to me quite often. I have files dating many years back that I cannot save. However, like DT says, once they are open they can be 'saved-as' to another name, and thereafter be saved normally.

I can't say why exactly it happened to you, but, for me this happens if dcad disappears while it is still open, and then I reopen dcad, since I thought it crashed. When this happens Windows has the file (in the disappeared dcad) registered as still being open. When I later shut down the computer the file is still registered as being open. Even later, when I open the computer and try to open the file, Windows thinks it is already opened in another instance of dcad so I get the 'already opened' message (the message says "other user" but "another instance of dcad" would be more accurate).

What do I mean by "dcad disappears while it is still open"? you may ask... I posted this explanation before but it's buried deep in one of those long-winded topics so here goes...
   For me, dcad disappears if I go to open a (floating?) toolbox that is already open. This sometimes happens when I switch to dcad from another program and dcad's toolboxes are open but not visible (due to some Windows' anomaly, I would assume). I then click in dcad's status bar to pop-up the toolbox menu and I click on a toolbox. If the toolbox is "already open but not visible" dcad disappears. If I in any way access another program (including another instance of dcad), before doing what I describe below, I will never be able to access that instance of dcad again and Windows will forever think that file is open.
    Here what I must do when dcad disappears:
      I must press the Alt key, then an underlined letter dcad's menu, the best one of which would be F, for "File". Upon doing this dcad's File menu will appear on the screen. I can then click the name of the file I am working on (in the recent file list at the bottom of the File menu) and dcad will reappear. If I had opened another of dcad's menu headings I could use the left/right arrow keys to navigate to the File menu.

I have developed an instinct for when my dcad toolboxes are open so when I switch from another program and they are not visible... and I think they should be (or if I feel like I'm about to get jinxed by them computer gremlins)... I minimize dcad, then restore it. If the toolboxes were open they would be visible when dcad is restored.

Lar
ps: when dcad disappears it will still be registered in Task Manager, not under the "Applications" tab but under the "Processes" tab. You can right click on it there and then click "end process" (and "ok" the warning message that follows if nothing else is using that dcad process). This will get rid of that dcad instance but I never tested to see if the file is then seen as being closed.

Dr PR

All,

It looks like I somehow did open two instances of DesignCAD (who knows how or why?) - and since I have been working on only the one file it would be open in both instances.

With Win 7 open programs are shown as icons on the bottom "status bar" or whatever they are calling it this year. Sure enough, there are two stacked DesignCAD icons. I closed both and then restarted DesignCAD and opened the file - no problems.

This is the first time this has happened to me with any program since the mid 1980s when I started using PCs, and it was quite a surprise.

****

Here is a suggestion - instead of the dialog saying another user has locked the file it would be much better to say that the file was locked because it was already open in another instance of DesignCAD. That would be much more informative.

Phil
DesignCAD user since 1987

DrollTroll

I'm not sure DesignCAD can really tell which is the case -- another user or another instance of DesignCAD. It's a feature of compound files that they are "locked" by the first user/application to open them. Telling which is which may not be possible. I'll try to have a look though; at least we can probably reword the message so both possibilities are mentioned.
25 years with DesignCAD