Jump to content
The simFlight Network Forums

FSUIPC AccessViolation at CopyMemory


Recommended Posts

Hi all,

 

what i have:     Windows 8.1, FSX, PMDG 737NGX, Saitek X52, Plan-G, ASN, FSUIPC4 and WideFS both lisenzed,
                       used all without any Problem and now with Problem Ms Visual Basic 2010 Express
what i bee:      German, retierd (74), Hobby Powerbuilder Programmer
what i will do:   Write a little Program to test my Saite-X52 in real live of FSX and for this i use FSUIPC4
                       on one PC with two Monitors

Program Status: Visual Basic 2010 Express and use of UIPC_SDK_VisualBasic-FSUIPC.bas
                          I have read all specified Manuals
                          Connect to FSX.exe or WideClient.exe OK
                          Error: "AccessViolation" at the first "CopyMemory"
        
Questions:    1.    What is the returnValue (m_pView) of MapViewofFile, is he variable when YES what Range ?
                            I'm know about the Slots-Range of 0xD000 to 0xFFFF are the fixed in Segment 0000 independent of
                            the Size of Memory (RAM) ?
                     2.    Is there a Trace of FSUIPC.bas available ? (maybe in the drawer)
                     3.    Q3 i hope no, after an answer for Q1

Regards
Manfred Maier

Link to comment
Share on other sites

Program Status: Visual Basic 2010 Express and use of UIPC_SDK_VisualBasic-FSUIPC.bas

                          I have read all specified Manuals

                          Connect to FSX.exe or WideClient.exe OK

                          Error: "AccessViolation" at the first "CopyMemory"

 

Doesn't Visual Basic 2010 Express come with any debugging tools, so you can find the error yourself?

 

  1.    What is the returnValue (m_pView) of MapViewofFile, is he variable when YES what Range ?

 

It is the address in your process memory of the file mapped file. don't you have any reference information for Windows APIs? They are all available on-line!

 

                            I'm know about the Slots-Range of 0xD000 to 0xFFFF are the fixed in Segment 0000 independent of

                            the Size of Memory (RAM) ?

 

 

Do NOT confuse FSUIPC offsets, which are really just tokens representing data, with addresses. They are NOT addresses in anything in your process! They are just data references as documented in the lists.

 

  

                  2.    Is there a Trace of FSUIPC.bas available ? (maybe in the drawer)

 

You use your debugger! The sources for all the parts which go into your program are provided in the ZIP.

 

                     3.    Q3 i hope no, after an answer for Q1

 

 

Sorry, this question makes no sense and isn't even a question.

 

Pete

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.