|
-
May 25th, 2004, 08:16 AM
#3
"The application failed to initialize properly (0xc0000005)."
This means the program is crashing with an access violation sometime during the run-up of the exe, before the exe's code actually runs.
You have been messing around with the import tables of this image, it is likely that you messed something up; it is quite tricky to properly handle all the different variations that can go on in the import tables and the image headers, and get everything put back the way it belongs, and still have the program run correctly.
It's also possible that the entry code you injected to unpack the exe and restore the imports has a problem and is causing a crash, although I would not expect the "application failed to initialize properly" if it is getting far enough to run your code.
This stuff is really painful to debug, because none of your code actually ever runs. All I can recommend is, become very familiar with the portable exe spec, and get a good image dumping tool and binary editing tool.
If you are attempting to do exe compression, there are numerous freeware, shareware, and commercial programs that do this, you might want to check some of them out. If you are trying to do some sort of licensing/copy protection scheme, I wish you luck - I've done this, and it's a pain in the a**.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|