Jump to content
The simFlight Network Forums

cant connect to fsuipc from another dll? can from an exe tho


Recommended Posts

gday,

ive been playing with the c example program for a bit and it works great, however im trying to make a plugin for another program but when i try connecting to fsuipc from that dll FSUIPC_Open fails with error 13? (the fact that its not registered makes no difference, my dll isnt even mentioned in the FSUIPC.log file :( )

i thought maybe it doesnt like being called from a new thread, so i copyed all the relevant code across to the test exe and it works fine.

is this a known problem?

(i see Pete wont be back for a few days, but im hopeing someone else would have an idea)[/url]

Link to comment
Share on other sites

ive been playing with the c example program for a bit and it works great, however im trying to make a plugin for another program but when i try connecting to fsuipc from that dll FSUIPC_Open fails with error 13?

13? Data error? That's a result when the data in the memory-mapped file passed to FSUIPC contains un-interpretable data. sounds like something is wrong with the way the data are is created.

(the fact that its not registered makes no difference, my dll isnt even mentioned in the FSUIPC.log file :( )

Switch on IPC read/writer logging just to checkHowever, if the memory-mapped file atom number is wrong then FSUIPC won't even be able to identify the program to log it.

is this a known problem?

No, not at all. There are many programs with FSUIPC access split into DLLs. For external programs threads and DLLs make no difference whatsoever to the interface -- only the Process matters.

I think you'll need to use a debugger to see what you are doing wrong. Sorry, I cannot debug your code from here.

Regards,

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.