ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Main Area and Open Discussion > General Software Discussion

mapping_data_source::init error: file not found

<< < (2/3) > >>

Contro:
ejem.

The first message in the console was the name of this post.
Checking 3%....

Contro:
Se completo la comprobación de 38%
comprobation up to 38%
---
Protección de recursos de Windows no pudo realizar la operación solicitada.
Windows protected resources can't do the operation...

Shades:
What is the reason of (brutally) terminating Ditto in the first place?

Software like 'Process Governor' or 'Process Tamer' would help closing any application gently, before its memory consumption or CPU consumption becomes too much for your liking.

Best practices regarding RAM consumption by an application is a whole different warzone discussion.

Debugging batch scripts involves a lot of handwork, especially when such scripts get a bit more complicated.
Fodder's suggestion is very helpful, it is best to type 'cmd' in the search box of your start menu. Perhaps it would even be better to run the 'cmd.exe' application in administration mode. Navigate to the batch script inside this CMD shell and run the script:

@echo off
taskkill.exe /im ditto.exe /f
PAUSE
start y:\Dittoprg64\Ditto.exe

When the PAUSE command is executed in the script you will see the result of the taskkill command you have executed. It the result shows one or more error messages, you can use the key combination CTRL + C to terminate the execution of this batch script (this won't close the CMS shell). Starting the Ditto application before fixing the error message is of no use and can even damage the data that is stored in that application. But you already managed to find that out the hard way.

It is very important to give an application time to close itself properly, so it can save files and data it was working with to allow it to function correctly the next time the application is started. The '/f' parameter of the taskkill command doesn't give any time at all to the application to terminate itself. Therefore it is only to be used as last resort.

For example, if Ditto consumes too much RAM for your liking, proper use of the taskkill command would be:

taskkill.exe /fi "Memusage gt 500000" /im ditto.exe         (this kills Ditto if it uses more than 500MByte of RAM)


Replace the taskkill line in your own script with the line above and use the built-in scheduler of Windows to execute the adjusted batch script on an interval (once per hour, once per day etc.) and Ditto will be properly terminated and restarted automatically, only when it is running out of your optimal settings.

Managing multiple applications in this way is a very time consuming task and there are specific tools here already available on the DC forum that make this a lot easier.

[joke (or not?)]
  You are always allowed to use the '/f' parameter like this: taskkill.exe /im excel.exe /f
[/joke]

Follow the link above for more explanation about this command (including some simple examples).

It also looks like you use a non-standard drive and folder setup in this particular Windows setup.

The reported error mentions that it cannot find a file, so that leads to to the following questions:
Y:\ - this is a network drive? And even if it isn't, are you sure you have enough user rights to access this drive and its contents?
Dittoprg64\ - Are you sure you have enough user rights to access this folder and its contents?

Contro:
 :-[
I will investigate. I am using this bat some years ago. And goes well in the portatil...
Never corrupted data with Ditto.
I have 16 GB ram in this pc. And only 4 GB in the portatil.


P.D. I think I must explain how i use this bat:
Ditto is a great clip manager, even in network. But sometimes in my system (3 pc's) fails the connection. And one way to solve this is close and open ditto again....

No problems of ram memory really...
 :-[

f0dder:
Se completo la comprobación de 38%
comprobation up to 38%
---
Protección de recursos de Windows no pudo realizar la operación solicitada.
Windows protected resources can't do the operation...-Contro (April 03, 2015, 11:34 AM)
--- End quote ---
That doesn't sound too good.

I would try rebooting Windows in "safe mode with command prompt", and run the "sfc /scannow" again there. If that also fails, your install is in pretty bad condition. It could be corrupt Windows system files for whatever reason, it could be malware, it could be "security" software of the stupid kind.

P.D. I think I must explain how i use this bat:
Ditto is a great clip manager, even in network. But sometimes in my system (3 pc's) fails the connection. And one way to solve this is close and open ditto again....-Contro (April 03, 2015, 12:10 PM)
--- End quote ---
Is there a reason you use the /f argument? Can't taskkill do a clean shutdown of ditto?

If you generally use the practice of /f'ing processes (whether with taskkill or by force-qutting from task manager), it's no wonder your system is acting wonky - that way of shutting down processes should only be done as a last resort.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version