<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.xna.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>General</title><link>http://forums.xna.com/forums/50.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007.1 (Build: 0.0)</generator><item><title>-&gt;CreateEffect(&lt;snip&gt;) Returns -1072627707</title><link>http://forums.xna.com/forums/thread/187436.aspx</link><pubDate>Mon, 08 Jun 2009 21:33:06 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:187436</guid><dc:creator>Olivier Hamel</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/187436.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=50&amp;PostID=187436</wfw:commentRss><description>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&amp;#39;t be able to pick a scrap of info on it and it doesn&amp;#39;t match any DIERR_* define that I know of.&lt;br /&gt;
&lt;br /&gt;
Here&amp;#39;s the DIEFFECT and DIPERIODIC structures that I passed:&lt;br /&gt;
&lt;br /&gt;
DIEFFECT:&lt;br /&gt;
&lt;br /&gt;
dwSize = 56;&lt;br /&gt;
dwFlags = 18;&lt;br /&gt;
dwDuration = INFINITE;&lt;br /&gt;
dwGain = DI_FFNOMINALMAX;&lt;br /&gt;
dwTriggerButton = DIEB_NOTRIGGER;&lt;br /&gt;
dwTriggerRepeatInterval = 0;&lt;br /&gt;
rdgwAxes = &amp;lt;pntr to {0, 4}&amp;gt;&lt;br /&gt;
rdlDirection = &amp;lt;pntr to {10000, 10000}&amp;gt;&lt;br /&gt;
lpEnvelope = NULL;&lt;br /&gt;
cbTypeSpecificParams = sizeof(DIPERIODIC);&lt;br /&gt;
lpvTypeSpecificParams = &amp;lt;pntr to my DIPERODIC struct&amp;gt;;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
DIPERIODIC:&lt;br /&gt;
&lt;br /&gt;
dwMagnitude = 6499;&lt;br /&gt;
lOffset = 0;&lt;br /&gt;
dwPhase = 1000000;&lt;br /&gt;
dwPeriod = 35999;&lt;br /&gt;
&lt;br /&gt;
I then create the effect with:&lt;br /&gt;
-&amp;gt;CreateEffect(GUID_Sine, &amp;lt;pntr to my DIEFFECT instance&amp;gt;, &amp;lt;pntr to repository address for pntr to effect handle&amp;gt;, NULL);&lt;br /&gt;
&lt;br /&gt;
And then it fails and dumps -1072627707 onto me.&lt;br /&gt;
&lt;br /&gt;
Help. D:&lt;br /&gt;
&lt;br /&gt;</description></item></channel></rss>