fancycode / MemoryModule

Library to load a DLL from memory.
http://www.joachim-bauch.de/tutorials/loading-a-dll-from-memory/
Mozilla Public License 2.0
2.8k stars 755 forks source link

Implement Binary Search from py2exe. #74

Closed AraHaan closed 6 years ago

AraHaan commented 6 years ago

py2exe uses v0.0.3 modified to add binary search to load dll's (like pythonxx.dll) with a ton of exports.

Let me know if I need to update something to fix problems with this, I tried with a mere copy paste from the version of this that py2exe ships with. I would like this included so that way py2exe dont have to ship an old (patched) special version of the code that could easily have bugs that the current version on this git on branch master patches.So instead I made this Pull request to achieve such. Not to mention what if an in general user (non python or py2exe user needs this binary search that the original py2exe creator patched into this. Either way, I see this more of a useful thing to have in the mainline MemoryModule.

fancycode commented 6 years ago

Implemented in #76, thanks for the heads up.

AraHaan commented 6 years ago

Thanks. And sorry for any code I made that did not work initially, I just cant hardly read C code that well as well it becomes all over the place sometimes. I should really consider learning how to read C so that way ceval.c in cpython is no so cancerous for me to even try to understand what it does.