XNA Creators Club Online
Page 1 of 1 (1 items)
Sort Posts: Previous Next

->CreateEffect(<snip>) Returns -1072627707

Last post 08/06/2009 21:33 by Olivier Hamel. 0 replies.
  • 08/06/2009 21:33

    ->CreateEffect(<snip>) Returns -1072627707

    Being very helpful, MSVC has reported saying that CreateEffect failed with the return code -1072627707. Now I have no bloody idea what this code is, what it means, where it comes from, or how to fix it. I haven't be able to pick a scrap of info on it and it doesn't match any DIERR_* define that I know of.

    Here's the DIEFFECT and DIPERIODIC structures that I passed:

    DIEFFECT:

    dwSize = 56;
    dwFlags = 18;
    dwDuration = INFINITE;
    dwGain = DI_FFNOMINALMAX;
    dwTriggerButton = DIEB_NOTRIGGER;
    dwTriggerRepeatInterval = 0;
    rdgwAxes = <pntr to {0, 4}>
    rdlDirection = <pntr to {10000, 10000}>
    lpEnvelope = NULL;
    cbTypeSpecificParams = sizeof(DIPERIODIC);
    lpvTypeSpecificParams = <pntr to my DIPERODIC struct>;


    DIPERIODIC:

    dwMagnitude = 6499;
    lOffset = 0;
    dwPhase = 1000000;
    dwPeriod = 35999;

    I then create the effect with:
    ->CreateEffect(GUID_Sine, <pntr to my DIEFFECT instance>, <pntr to repository address for pntr to effect handle>, NULL);

    And then it fails and dumps -1072627707 onto me.

    Help. D:

Page 1 of 1 (1 items) Previous Next