I have seen that insertion of VM macros in try-except clauses are a bit tricky. What about try-finally clauses?

<< Click to Display Table of Contents >>

Navigation:  Themida > FAQ > Macros >

I have seen that insertion of VM macros in try-except clauses are a bit tricky. What about try-finally clauses?

You have to insert VM macros in try-finally clauses in the same was as you do for try-except. Example:

 

try

{

 

   VM_START

 

   // your code

 

   VM_END

 

}

 

finally

 

{

 

   VM_START

 

   // your code

 

   VM_END

 

}