superdudes Posted July 3, 2011 Report Posted July 3, 2011 Hi guys, I did try and search the forum for an answer but the search page kept timing out! Anyway, I have created a logger program for my VA that tracks startup time, position shutdown time etc etc, and some of my pilots are reporting this error message from FSUIPC Failed to open a view to the file map Was wondering what it means and if theres a fix or if its something I have done wrong? Thanks in advance Chris
Pete Dowson Posted July 3, 2011 Report Posted July 3, 2011 Anyway, I have created a logger program for my VA that tracks startup time, position shutdown time etc etc, and some of my pilots are reporting this error message from FSUIPC Failed to open a view to the file map Sorry, that is not a message which exists in FSUIPC. I think it must be referring to Error #6 in the interface software you are using, whatever that is. If it's the C code I wrote for the FSUIPC LIB you might be using, it's "FSUIPC_ERR_MAP", here: // create the file-mapping object m_hMap = CreateFileMapping( (HANDLE)0xFFFFFFFF, // use system paging file NULL, // security PAGE_READWRITE, // protection 0, MAX_SIZE+256, // size szName); // name if ((m_hMap == 0) || (GetLastError() == ERROR_ALREADY_EXISTS)) { *pdwResult = FSUIPC_ERR_MAP; FSUIPC_Close(); return FALSE; } But none of the code I wrote actually reports the error with that message, it simply returns the error code -- it must be your code doing it, or the library code of someone else that you are using. The source and all documentation for this is included in the FSUIPC SDK. You should be able to debug your program with the debugger included with your compiler. Regards Pete
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now