Windows API: Strange behaviour after calling GetModuleFileNameExA
Regan Heath
regan at netmail.co.nz
Tue Nov 27 00:57:59 PST 2007
Tobias Wassermann wrote:
> Regan Heath Wrote:
>
>> How have you declared processFileName? Perhaps "char[]
>> processFileName;"? Is it declared in main right next to processIds?
>
> Yes, it is declared just before the for-loop as:
>
> char[] processFileName;
The thought I had was that perhaps GetModuleFileNameExA was overwriting
the wrong memory and corrupting the process list.
Can you post a complete working piece of code which exhibits the bug,
I'd like to help by debugging it locally.
Regan
More information about the Digitalmars-d
mailing list