Loading...
 
Multi-Language Add-In for Visual Studio

Multi-Language Add-In for Visual Studio


Error System.ArgumentOutOfRangeException during restore resources's database.

We have a large project and when restore resources's database we received that error:
the first time we haven't no problem and we have check the strings to translate, and all go fine;
the second time, when we try to load the resources's database, after few minuts, the add-in stop and display the error message attached.
Thanks, best regards.

Germany

I have added a check for this error, which will be in the next version (4.7x.0109).

I haven't uploaded this version yet. I will reply again when it is online.

Phil


Germany

I have now uploaded version 4.7x.0109 with a fix for this problem.

The problem actually occurs on inserting a translation from the global database. It is not obvious why it inserts a translation from the global database if you are restoring the grids from the database, but that is not the real problem.

When I first implemented the global database (for the VB6 Add-In) I made a design decision to support shortcut characters identified by the & character, but to store the position of the & character in a separate field. The reason for that, is that I don't want to consider the & character when searching for a text in the database.

In retrospect, I have often wished that I had just stripped the accelerator character out and ignored it in the global database. I am not sure that this is a good feature!

However, the error occurs on inserting the accelerator character (&) back into a string, because the stored position is invalid. That is obviously another error, which I have not looked for yet.

The actual change in the new version is simply to check that the position for the accelerator character is actually within the string. If not, then the & character is not inserted.

Phil


After installed the latest version, the error is fixed but another error is displayed:
the new error is System.OutOfMemoryException, see attached file.
My computer is:
Windows XP SP3
CPU Intel Core 2 Duo 2,53 GHz E7200
RAM 3,49 GB
We have try to run the restore from database after reboot the system, so we have all memory free, but the error is displayed again.
Thanks for your support.
Best regards.


Hi, do you have any idea about the solution of this problem?
Thanks for your support, best regards.

Germany

Sorry, I haven't really looked at this specific error yet.

It might help if I added some explicit garbage collection. Normally, I would expect the framework to do garbage collection automatically when it runs low on memory, but on at least one occasion it has helped.

However, garbage collection is about the most unimaginative approach to handling memory problems. I will try to find a better solution.

Phil

Thanks you Phil.
We have extreme urgency to complete this work, all your effort to solve the problem well be greatly appreciated. Thanks again.

Sergio Matteoni CEO Nkey SRL