Results 1 to 4 of 4

Thread: "Invalid call" ERROR in DirectX, unknown reason for error!

  1. #1

    Thread Starter
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349

    "Invalid call" ERROR in DirectX, unknown reason for error!

    I have a program that uses DirectX 8 and worked fine. I've changed "something" and saved it and can't remember what I changed but now it gives me an error if I try and call anything like "DrawIndexedPrimitive" or "DrawPrimitive". After putting the error number in the directX Error lookup I got this:
    VB Code:
    1. 'HRESULT: 0x8876086c (2289436780)
    2. 'Name: D3DERR_INVALIDCALL
    3. 'Description: Invalid call
    4. 'Severity code: Failed
    5. 'Facility Code: Unknown (2166)
    6. 'Error Code: 0x086c (2156)

    Does anyone know why it would give me that error simply from tying to draw. btw it does let me draw meshes still using "Mesh.DrawSubset i"
    Thanx for any help.
    When your thread has been resolved please edit the original post in the thread ()
    and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.

    When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

  2. #2
    Frenzied Member Devion's Avatar
    Join Date
    Sep 2000
    Location
    The Netherlands
    Posts
    1,049
    Changed a variable maybe? Locked a surface which should be locked? (oh wait.. that's ddraw )

    Your best bet is on checking each variable that you are using with the function and check if it is what it supposed to be..

    my 1 and half euro cents

  3. #3

    Thread Starter
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349
    Oh well I guess i'm going to have to go thro the whole of my program, I was just hoping someone might have done something similar and known why it happens.
    Thanx anyway tho.
    When your thread has been resolved please edit the original post in the thread ()
    and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.

    When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

  4. #4

    Thread Starter
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349
    I've just checked some of my other DirectX Programs and they all cause this error when they come to a line that uses "DrawIndexedPrimitive" or "DrawPrimitive". Does anyone know any websites that I could check to see if I can find out why this is happeneing?
    When your thread has been resolved please edit the original post in the thread ()
    and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.

    When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width