I am experiencing a termination of Flight Sim when I resize the panel window that my FSUIPC gauge is placed on. To find the cause I removed all the FSUIPC elements, and added them back. It would appear that this section is not correct. Might I need to delay the connection to FSUIPC?
I have asked many others for help, and with their knowledge in C/C++ they cannot see why there would be any issues with the following code.
BYTE FsuipcMem=1024;
DWORD dwResult;
********
case PANEL_SERVICE_CONNECT_TO_WINDOW:
FSUIPC_Open2(SIM_ANY, &dwResult, &FsuipcMem, 1024);
FSUIPC_Process(&dwResult);
break;
I am including the following in my C file,
#include "fs2k2gauges.h"
#include "FSUIPC_User.h"
#include "FDUMP.h"
#include "ModuleUser.c"
As well as the FSUIPC_User.lib in the makefile.
I do apologise for my lack of knowledge in C. If anyone might know what the cause of such an issue is, I would very much appreciate any help or suggestions you could offer.
Regards,
Andrew