Fixed: Cannot save file..

Bug reports concerning HxD.
Post Reply
redk9258
Posts: 5
Joined: 14 Jul 2008 01:25

Fixed: Cannot save file..

Post by redk9258 »

Hello, I'm new to HxD and am having a problem saving files. Let me start by saying this is a nice application and well laid out. My problem is that if I open a file and try to save it, I keep getting the message: 'Cannot create file "C:\XXX.bin". The system cannot find the path specified.' My computer has an Athlon XP 2.0 GHz processor and I am running Windows XP. I am the administrator, so I should have write privileges. Is there something obvious that I am missing? Thanks for the program and any help in advance.
Maël
Site Admin
Posts: 1455
Joined: 12 Mar 2005 14:15

Re: Cannot save file..

Post by Maël »

Hello,
Is "C:\XXX.bin" the file you try to save? If yes, does it work with other files? Finally, can other apps create/write the file?
Regards, Maël.
redk9258
Posts: 5
Joined: 14 Jul 2008 01:25

Re: Cannot save file..

Post by redk9258 »

OK, I created a text file in notepad with the text "123" and saved it as C:\new.txt. I can open it with HxD and change it to 1234, but I cannot save as another name-such as new2.txt. I can save it as the original file. I also tried to "save as" to the desktop, but cannot. Oh, all other programs can write files.

Thanks.
Attachments
The error..
The error..
Clipboard01.jpg (16.97 KiB) Viewed 16952 times
Maël
Site Admin
Posts: 1455
Joined: 12 Mar 2005 14:15

Re: Cannot save file..

Post by Maël »

Maybe this is related to a bug in the open files dialog. Do you have the "hide known file extensions"-options enabled in Windows?

It looks like there is some really specific combination of actions needed to trigger this bug (I haven't been able to do it so far). I.e. I need to know if you click, or you press enter to close the dialog (those details make a difference). If you change the folder or it is opened at the right place and how you change, keyboard or mouse.

I'm sorry, but I think a detailed step by step approach of how the file is opened and saved is necessary so I can reproduce.

Thanks, Maël.
redk9258
Posts: 5
Joined: 14 Jul 2008 01:25

Re: Cannot save file..

Post by redk9258 »

Launch HxD from start menu.
Click new file icon with mouse.
Type 31 32 33 34 (1 2 3 4 appears in right pane).
With mouse, click File > Save as..
In Save in box that appears use mouse to pull down arrow and navagate to C:
Type name "new.txt"
Click save.
The message I posted above appears. 'Cannot create file "C:\". The system cannot find the path specified.'

Thanks.
Maël
Site Admin
Posts: 1455
Joined: 12 Mar 2005 14:15

Re: Cannot save file..

Post by Maël »

I tried different combinations, but still didn't get the error you mentioned.

I'm going to setup a debug-build of HxD I can send you to see if that gives some clues.

In the mean-while could you tell me what version of HxD you use (if it is portable/installable and its version number) and send me the configuration file (can be found in %APPDATA%\Mael\HxD for the installable version or the same directory as the EXE for the portable version)?
redk9258
Posts: 5
Joined: 14 Jul 2008 01:25

Re: Cannot save file..

Post by redk9258 »

I first tried the portable version. When it did not work properly (same problems), I tried the installed version. The version is 1.7.6.3
Here is the ini file...

Code: Select all


[\Position\FormMain\]
Left=140
Top=224
Width=960
Height=668
WindowState=1

[\]
Theme=Default
OffsetBackColor=-16777211
OffsetForeColor=12517376
DataBackColor=-16777211
DataForeColor=-16777208
SelColor=-16777203
SelTextColor=-16777202
FirstHexViewMaximized=1
MakeBackupFiles=1
DiskReadOnlyByDefault=1
DiskWriteAccessWarningAutoAnswer=0
AllowStreamResizeAutoAnswer=1
SearchForBetaUpdates=1
BytesPerRow=16
FitRows=0
Charset=0
OffsetBase=0
ByteGroupSize=1
MultipleInstances=0

[\ModifiedAttributes\]
BackColor=536870911
ForeColor=255
Style=00

[\Font\]
Charset=1
Name=Courier New
Pitch=0
Size=10
Style=00

[\HistoryLists\RecentFiles\]
Count=1
Item0=C:\Documents and Settings\Xxx Xxxxxxxxx\Desktop\New Text Document.txt



(I edited my name after documents and settings)

Thanks!
Maël
Site Admin
Posts: 1455
Joined: 12 Mar 2005 14:15

Re: Cannot save file..

Post by Maël »

Should be fixed in version 1.7.6.4 (will be published today).

Please let me know if it works now.
Maël
Site Admin
Posts: 1455
Joined: 12 Mar 2005 14:15

Re: Cannot save file..

Post by Maël »

Ok, finally uploaded the new version (1.7.6.4).

Please let me know if it works now.
redk9258
Posts: 5
Joined: 14 Jul 2008 01:25

Re: Cannot save file..

Post by redk9258 »

A great big thanks to you!! It seems to be fixed. I open the program and click new file. I type in hex "31 32 33 34". I saved the file to my desktop as a text file. It opens with notepad and the text is as expected "1234". I will play around a little more and report back if I have any problems.

Thanks again,
Val
pcangelo

Re: Fixed: Cannot save file..

Post by pcangelo »

On vista home premium with latest version of this software I am not able to save a binary file.
I open a disc (give vista rights on program to be able to see the disk).
Select the firsts raw sectors from disc ( ex offset 0, length 2048)
save file doesn't work.
Export as C, html, etc works well.
(the file is created but is empty, the error is like it cannot write the file - disk space)
Maël
Site Admin
Posts: 1455
Joined: 12 Mar 2005 14:15

Re: Fixed: Cannot save file..

Post by Maël »

Save to file saves the entire file (disk/RAM), not only a portion. That is intentional. A feature is planned for making disk images and saving the selection.
Post Reply