Overflow error or simply crash

Post here messages if you have any problems with working of Enigma Protector
Post Reply
xeon1976
Posts: 3
Joined: Sun Oct 30, 2011 10:39 am

Overflow error or simply crash

Post by xeon1976 »

Hello!

I am facing a very peculiar problem. I am trying to protect my app developed in VB6 (Native).
But every time the protected app crashes with either overflow error or some fault.
I have attached a sample app. it is very simple, hardly 10 lines of VB6 Code.
I have also attached the exe, the map file & enigma project file.
There are only two functions. Whether you vitualize both or either, the app will crash.
The problem with this sample could be solved by changing the datatype of variable A from Long to float or Double.
However it might not be feasible to change the datatype in my real app.
Please advise. It is urgent and i am ready to buy.
EnigmaError.zip
(25.17 KiB) Downloaded 1588 times
Thanks,
Feroz Ahmed
Enigma
Site Admin
Posts: 3085
Joined: Wed Aug 20, 2008 2:24 pm

Re: Overflow error or simply crash

Post by Enigma »

Hi Feroz, going to check it out, please refer to this thread, I will update it when the problem will be solved.
Enigma
Site Admin
Posts: 3085
Joined: Wed Aug 20, 2008 2:24 pm

Re: Overflow error or simply crash

Post by Enigma »

Just reviewed your file, there is really some limitation that does not allow to virtualize Main() function through map file.
This error is related to only this particular application, and it probably will not appear with the normal application.

Anyway, in your case I advise you to use VM Makers instead of selecting functions from map file. VM Makers provide the same functionality, but if you use markers, you may not care that .exe and .map file has to match. I.e. VM Markers are more simpler to use.

There is description of how to use VM Makers:
http://enigmaprotector.com/en/help/manu ... 817f85021c

For Visual Basic, simply around the code you want to virtualize with the:

Code: Select all

Call VarPtr("VM_BEGIN")
' Your code
Call VarPtr("VM_END")
But there are few notes also:
1. Do not use Exit Sub function inside VM Marker
2. Do not define variables insize VM Markers, varibles definition should be placed outside of VM Marker.

PS: we wil try to fix the problem with current application in next version anyway.
Post Reply