Closed Sigma12456 closed 3 months ago
turns out enabling debug crashes it lmao
Although this is a closed issue, I would like to add that, in LPSTR args[] = { (LPSTR)"", (LPSTR)"-device", (LPSTR)"fpga://algo=0", (LPSTR)"", (LPSTR)"", (LPSTR)"", (LPSTR)"" };
, you provided insufficient parameter positions, resulting in the last parameter args[argc++] = (LPSTR)path.c_str();
not being included when debug is turned on.
Also, the reason I'm here is that I'm actually searching for one thing: what format should mmap.txt be provided in, because in the wiki I saw two different formats, which confused me, can you provide some help? 1 0x1000 0xA0000 0x100000 0x9D00000 0xA000000 0xA200000 0xA20C000 0xB000000 0x38D0000 0x91EB000 0x93C2000 0xD94D9000 0xDA5E3000 0xDD000000 0x100000000 0x81F300000
2 # base top 0000 1000 - 9cfff 0001 100000 - 101fff 0002 103000 - bb37afff 0003 bb382000 - bb7dbfff 0004 bbc4c000 - cd216fff 0005 cefff000 - ceffffff 0006 100000000 - 42effffff
@Jotalz the memmap is fairly flexible, you can double check it by adding options -v
and -vv
and the parsed memmap should show up in the debug printouts at the very top of the initialization stuff in the console window.
@Jotalz the memmap is fairly flexible, you can double check it by adding options
-v
and-vv
and the parsed memmap should show up in the debug printouts at the very top of the initialization stuff in the console window.
yes,I should try it,you are a really nice man,thanks!
I have a problem that when i enable the mmap argument it jusr crashes. the bolean doesnt return true or false it just crashes and without that argument it doesnt crash. i never had this issue before and i didnt change anything(I think). Windows 11
`` bool Memory::Init(std::string process_name, bool memMap, bool debug) { if (!DMA_INITIALIZED) { LOG("inizializing...\n"); reinit: LPSTR args[] = { (LPSTR)"", (LPSTR)"-device", (LPSTR)"fpga://algo=0", (LPSTR)"", (LPSTR)"", (LPSTR)"", (LPSTR)"" }; DWORD argc = 3; if (debug) { args[argc++] = (LPSTR)"-v"; args[argc++] = (LPSTR)"-printf"; }
} ``