Jump to content

Scanning: Files left in %TEMP%


Recommended Posts

My limited technical knowledge doesn't allow me do determine if this is a bug or if it's related to PDN. But when I scan using PDN, there are files left in the temp folder (%TEMP%), "imgsomething.tmp" (0 KB). Maybe it's related to this WIA (?) thing PDN uses for scanning. If it's a bug of PDN, please fix it. It's not fun to browse the temp folder for cleaning up all that useless files. :(

Please note that I get no errors when I scan.

I hope I've posted in the correct section, if not -> please move.

And I did search.

Link to comment
Share on other sites

When you scan with an anti-virus/spyware/stuff, right?

The magic behind the History feature is saved to the hard disk, to avoid overkilling memory, look at the v3.0 changelog:

History files are now compressed to save disk space, reduce disk activity, and improve performance.

No. Way. I've just seen Bob. And... *poof!*—just like that—he disappears into the mist again. ~Helio

Link to comment
Share on other sites

When you scan with an anti-virus/spyware/stuff, right?

The magic behind the History feature is saved to the hard disk, to avoid overkilling memory, look at the v3.0 changelog:

History files are now compressed to save disk space, reduce disk activity, and improve performance.

I run PDN on a computer without internet connection. So I have no antivirus stuff enabled on that PC.

Also I don't see the connection between history and scanning. History files are stored in an folder in %appdata% I think. %temp% is not %appdata%. And I am sure that I have at least 100 MB RAM left when I'm scanning. The junk files occur regardless to the size of the scanned pictures.

But, Bob, thank you for spending time on that issue.

Oh, and I forgot: Win XP SP2.

I hope I will found time to test if another programm using WIA causes the same junk files.

Link to comment
Share on other sites

I hope I will found time to test if another programm using WIA causes the same junk files.

OK, several test were done with MS Paint and Xnview, both using WIA. No files were left in the temporary folder. Did the same with PDN (same scanner, same pictures) and got imgXX.tmp-files.

In my opinion this is obviously a bug. :roll:

Link to comment
Share on other sites

A lot of programs load items into the temp folder. With the .NET Framework this is not uncommon as I have seen things like Xfire do this.

It never bugs me as I do Disk Cleanups and tell it to remove all temp files on the computer. There got to be someway for Paint.NET to remeber the last image you opened in the open Recent list.

PS: Not everything in %TEMP% is junk as I have found out in the past the hard way.

Link to comment
Share on other sites

A lot of programs load items into the temp folder.

Yes. Thats the purpose of that directory. And please note it's named Temp. If I wouldn't clean it manually, the junk files would stay there forever.

It never bugs me as I do Disk Cleanups and tell it to remove all temp files on the computer.

PS: Not everything in %TEMP% is junk as I have found out in the past the hard way.

So you delete important files once per weak? :shock:

There got to be someway for Paint.NET to remeber the last image you opened in the open Recent list.

The compression seems to be unique as the files are empty and 0 KB in size.

For me it's as I said, I think it's a bug, and I just wanted to post that bug. I don't see any possibility for a kind of workaround. Maybe it's related to .Net Framework and not directly to Paint.Net. However, I hope this will be useful to other users so they know they have to do cleanups.

Link to comment
Share on other sites

Hooow, scanning with a scanner! Well, it may seems obvious, but the %Temp% thing bugged me (I was wondering why you were mentioning WIA XD)

Very sorry. I totally misunderstood what you wrote.

I think everyone have those moments... :oops:

No. Way. I've just seen Bob. And... *poof!*—just like that—he disappears into the mist again. ~Helio

Link to comment
Share on other sites

So you delete important files once per weak? :shock:

My 2nd computer (the one in the back room with no PSU next to the laptop and linux box) I delete all files in the %TEMP% folder and with that I killed one of my programs and messed up all icons for side menus. I restored the files and then everything worked again.

You could just open the tmp files with notepad and see what they say on the files them selfs.

Link to comment
Share on other sites

Forgive me, Bob. I didn't get that you mean scanning with antivirus software. I thought you meant I would scan running anitivirus stuff in the background. You see, I have these moments too.

To make this clear, I speak about Paint.Net (of course) and so I mean picture scanners (hardware, not software). My thread targets a bug (?!) of the picture scanning parts of PDN.

I'm sorry for the confusion with WIA. I first thought the bug would be related to WIA but I did scans with other software using WIA and did not get junk files. I should have checked it before posting the first time. Sorry.

You could just open the tmp files with notepad and see what they say on the files them selfs.

Yes, I had the same idea yesterday but I hadn't the time. Now for your interest:

emptymg1.png

This is the Hex view of one such file (it shows the raw data) and as you can see it is totally empty. And the file size isn't just 0 KB, it is 0 byte.

Also I attached three of these files. It are different scans. You can download them and look yourself. Note: It was impossible to upload the files, as it said: "The file is empty, you can't upload it" or something like this. So I made a Zip.

Bob, HITMAN-X-, I thank you both for your fast replys. Actually, I don't think this is stuff for you. It's intended as information both for users and the developers. I still don't know if the bug is either related to PDN or to .Net, and maybe I'll make a batch file for killing all img*.tmp-files in Temp. But even with the batch, it is still nasty as you can't scan using Paint.Net without doing cleanups after scanning. I have not to say I would be lucky about a fix.

If somebody has any further information, he is definately invited to post here. I myself said anything I have to say, but I'll answer questions if it helps. Thank you for your time.

imgs.zip

Link to comment
Share on other sites

I've filed a bug for this. Obviously a relatively low priority item, but it's just so darn easy to fix why not ...

Thank you, Rick. Actually I waited for you to comment. I agree, it's definately low priority, but it's nasty. :)

Do you mind telling us why it's so easy to fix (I mean what causes the error)? Nothing important, I'm just a little curious.

Link to comment
Share on other sites

It's easy because assuming that Paint.NET is the one creating the temporary file, all I have to do is delete it.

If Paint.NET isn't responsible for the file then there's nothing I can do. I don't know if it is at this point because I haven't checked.

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...