How can I know the size that I need to set to create a Stealth Area in my application?

<< Click to Display Table of Contents >>

Navigation:  Code Virtualizer > FAQ > General >

How can I know the size that I need to set to create a Stealth Area in my application?

It's not possible to know the exact size of the Stealth Area before hand, as the Virtual Machine and macros are generating different code each time. Using the same Virtual Machine (like FISH_WHITE) in different protected instances, you can have a difference of about 100Kb between protected instances.

 

You could start creating a Stealth Area of 1000Kb and protect your application. At the end of the protection, Code Virtualizer reports the Stealth Area space left. So, if it reports 500Kb left, then you can reduce your initial Stealth Area (1000Kb) in about 400Kb. So, you modify your source code and create a Stealth Area of 600Kb and you can be sure that all protected instances will fit inside that 600Kb Stealth Area. Of course, if you change at a later time the selected Virtual Machine and increase the number of macros in your source code, you might need to increase the space in your Stealth Area.

 

If the protected code is bigger than your Stealth Area, Code Virtualizer will report an error message, so you have to increase the Stealth Area in your source code, re-compile and protect again, until you find a suitable size for your Stealth Area.

 

Another way to initially set the Stealth Area is that you protect your application but do not set the option "Stealth Area" in the "Extra Settings" panel. After protection, Code Virtualizer will report the increase in size of your protected file, so you have there an approximate size for your Stealth Area. Our recommendation is that you take that value (increase in size) and add 100Kb and create a Stealth Area with that size.