Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Debug gauges with VC++

Featured Replies

HiI'm doing my first attempts in c++ gauges, so far so good. But now I need to debug some IPC functions with an external program. The gauge is compiled with multithread debug option and when I run the project FS is launched as expected but VC++ always says that my breakpoints are invalid because "No executable code is loaded at current location". The startup situation is a 2D panel with my gauge.Any ideas?ThanksJos

Hi Jose,I often use a brute force method where I need to trace useful information:FILE * fo;...fo=fopen("C:dbgTrace.txt","a");fprintf(fo,"expected %d read %f",vara,varb);fclose(fo);You have no idea how useful it may be!! :-)If not prone to a brute force method, you may consider this:http://home.t-online.de/home/Ollydbg/Hope this helps!

If you've got his SDK on gauge creation, Dai Griffiths explains how to do it. If you don't have it, search flightsim.com for it.One thing you might need to do is not set any breakpoints until after your gauge is loaded. I'm not sure if this is true, but I think I've had to do that in the past.

Matt Kaprocki

Boeing777_Banner_DevTeam.jpg

For fastest support, please submit a ticket at http://support.precisionmanuals.com

Hi Jose,When I was developing FSConnect, I found that I could easily debug my code using VC++. Just start FS, then from VC++, select Build / Start Debug / Attach to Process to attach to the running process, and then I could set breakpoints in my code. Of course that was a module and you're working with a gauge, but I think they are basically the same thing.Russ Dirks

I had no problems to debug for Fs98 and Fs2000, but the described method for Fs2002 doesn't work any more on Win98SE. AFAIK it still works for newer Windows versions.Arne Bartels

  • Author

Thanks a lot for all the answers.The solution is indeed to attach the process instead of launching FS using VC++, don't know why, maybe something in the project properties could change that.Anyway, it really get's a nice environment for developing. Russ instead of attaching all the times one can go to the project properties and specify the attach. Now I can step by step the code. After change it only have to build it and reload airplane. When I have time I will try the same thing with a GNU IDE just to see if this can be made with GCC or BCC line command compiler.BestJos

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.