the code for 32 and 64 are the same.
i create exe32 and exe64, each one get the same params,
on exe 32 - all work.
on exe 64 even before initialization
it raise exception "error 126 specified module could not found".
i tried use exe walkthrough like depends22_x64 (exe64,...) and i look for all the dll in the list.
all dll exists in the system32 or wow64.
the madexcept (ver 5) dont give nothing,
how can i tell what MODULE is missing, how can i trace delphi exe load resorce?
It could be something funky like one of the required dlls being located in the application path, and this dll being 32bit. In that case the OS loader might try to load it but fails because it's the wrong bitdepth. This is just one possible explanation, though.
I could you could try to use a file monitor to see which DLL files the OS tries to access before it fails? I think SysInternals had a free file monitor available at some point.
i use all kind of walkthrough but i didn't see any dll that exists in system32 but not exist in wow64.
i tried buil the same app with forms (not console) but the same error happen.
on the 80' we wrote in COBOL and able to write some TRACE every line from the start.
can i do it in delphi?
log- load a1... (dll/drv/...)
log- load a2....
run api x1...
run api x2?
is it possible?
I guess you could try compiling your 64bit exe with all your source code commented out and see if it runs fine then. If it does, put the source code back in piece by piece. If it doesn't then try creating a new empty project. Does that run fine? If it does, copy your source code over from the non-running project.
Hope that helps?