Jump to content
The simFlight Network Forums

Programming Question


Recommended Posts

Pete,

When you develop FSUIPC, do you use a debugger to attach to the FS9 process? I have tried to attach to FS9.EXE with VS2005 but with no success, the process is greyed out and cannot be selected. I get the feeling that there is some code in FS9 preventing this (perhaps some security feature that prevents debugging) -- seems odd for MS to protect the FS9 process but not to protect system processes.

Does anyone have a way to attach their IDE/Debugger/Compiler system to the FS9.exe process?

I'd like to attach so that I can debug dlls that are later loaded from the modules folder. I'd also like the debugger to inspect memory.

Pali

Link to comment
Share on other sites

When you develop FSUIPC, do you use a debugger to attach to the FS9 process? I have tried to attach to FS9.EXE with VS2005 but with no success, the process is greyed out and cannot be selected. I get the feeling that there is some code in FS9 preventing this (perhaps some security feature that prevents debugging)

Yes, I use the Visual Studio C/C++ debugger. It works best with the "no CD" crack for FS9 -- the only justification I can offer for using that piece of work. Otherwise you may be able to attach to the FS9 process AFTER it is started and fully running, but that can sometimes prove difficult too.

For much development I have to write my own "foraging" DLLs which run inside FS and show me what is going on.

Regards

Pete

Link to comment
Share on other sites

Yes that did indeed solve it. Now VS Debugger is allowing me to attach to process. I wonder what changed. This is excellent, now I can set a breakpoint in my dll! This is much appreciated Pete.

For the record: I *do* own a legally purchased copy of FS2004, let there be no doubt.

I was also concerned about the toll all the work I have been doing was taking on my dvd-rom drive, since every time I test, FS2004 checks the cd and it revs the cd-rom motor.

Thanks once more.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.