RAPI library and IDE

Discussion in 'Beta Versions' started by agraham, Sep 14, 2008.

  1. agraham

    agraham Expert Licensed User

    I don't know if this is specific to 6.42 or to Vista.

    I'm using the RAPI library, B4ppc 6.42 and Vista with Windows Mobile. The RAPI library produces the connected and disconnected events when run in the IDE but file transfers always fail. Legacy or optimise compile the same code and it works fine!

    EDIT: - It looks like the IDE thinks it is permanently connected and fires the connected event when the app starts. I think that I am wrong about the disconnected event, I don't think it fires at all.

    EDIT:- This is most confusing. The problems seems to vary. I'm getting different symtoms today trying to run in the IDE. To begin with I was getting something like "value not expected" exception when I did Rapi.connect and then all of a sudden without changing the code, but having exited and restarted B4ppc it has started working? This is very strange!!

    EDIT:- What happpens seems to depend upon the order of doing things. If I start B4ppc then connect the device then run my app in the IDE it seems ok. If I exit my app (but not B4ppc) disconnect the device and rerun my app I get a "Value does not fall within the expected range" error on Rapi.Connect. If I now exit and restart B4ppc and run my app then Rapi.Connect does not throw this error.
    Last edited: Sep 15, 2008
  2. Erel

    Erel Administrator Staff Member Licensed User

    I don't think it is related to version 6.42.

    I've tried to reproduce this problem and it works fine here (XP and activesync 4.5).
    I will later try it on Vista Mobile Center.
  3. agraham

    agraham Expert Licensed User

    Don't waste too much time on this Erel. It works well enough when compiled and the app is finishd now. I posted in case you had come across something like this before.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice