Ok, first, do you have the pref set to select the process to monitor?
Following the break point where you get the trace message (and continue stepping through with F10, checking values as you go), you have one of two ways of filling the polProcesses[] array, depending on whether you selected the process or not.
If you did select the process, did it select the correct one? If you did not select the process, did the program find the pol.exe process in its query?
If the pol process you expect is inside the polProcesses[] array, continue.
If it found a pol process, it's going to try to find the ffximain.dll module within that process. Look at process.Modules when it gets to line 681; is ffximain.dll in that list?
This seems to be the most likely failure point if you were constantly seeing the output from
Trace.WriteLine(Thread.CurrentThread.Name + ": Attempting to connect to Final Fantasy.");
in the output log, but not seeing
Trace.WriteLine(string.Format("Module: {0} Base Address: 0x{1:X8}", module.ModuleName, (uint)module.BaseAddress));
If that does seem to be the failure point then look through the module list to find the dll used in the test server install. If this is not the failure point, get back to me.
