>>
>>I am not sure why did it try to load the c:\dev version of the dll as I put this in the call:
>>
>>if loBridge.LoadAssembly("C:\_Siriusware\Main\Siriusware.Library\Siriusware.Library\bin\Debug\Siriusware.Library.dll")
>>
>>e.g. I specified the exact path to the dll (although I also had the dll in the application directory from where I was testing it).
>>
>>I am going to re-start VFP to be sure.
>>
>>UPDATE. Could not make it to work. VS does not stop on the breakpoints.
>
>A few things you can try - don't attach VS to VFP until after you've loaded the assembly. Also do a full rebuild on the debug version to make sure the debug symbols are in sync - from the messages it's not loading the PDB and without those your breakpoints won't be hit.
Thanks, Paul. It now worked. I attached to the process after loading the dll and was able to find out the ini file name when running from program in VFP (it was ProgramData/Siriusware/Siriusware.Library/Siriusware.Library.ini). Hopefully when running from the actual VFP application like SysManager it will be in SysManager/SysManager.ini file.
If it's not broken, fix it until it is.
My Blog