Dewera / Lunar

A lightweight native DLL mapping library that supports mapping directly from memory
MIT License
585 stars 102 forks source link

Crashed when importing #31

Closed bacontsu closed 3 years ago

bacontsu commented 3 years ago

this is weird, i imported the whole thing (and now im using .NET Core 5.0) but whenever i tries to close and save visual studio, it gave me the 'bad exception' notification and not long after that visual studio crashed. any idea to fix this? note : this wont happen if i dont import MappingFlags.cs and LibraryMapper.cs for some reason?

bacontsu commented 3 years ago

after successfully importing it (somehow) then i called the function after using Lunar;

var process = Process.GetProcessesByName("csgo")[0];
var dllFilePath = @"mydll.dll";
var flags = MappingFlags.DiscardHeaders;
var mapper = new LibraryMapper(process, dllFilePath, flags);

mapper.MapLibrary();

the program just freezes, no injection happened note the mydll.dll is in the same folder as the Released program, also csgo has been opened is there something wrong with my code? maybe it can't find the dll?

bacontsu commented 3 years ago

access denied, looks like windows problem