Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8375889
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T15:17:31+00:00 2026-06-09T15:17:31+00:00

I saw Microsoft C++ exception: long at memory location at this line : pDev->DrawIndexedPrimitive(D3DPT_TRIANGLELIST,

  • 0

I saw “Microsoft C++ exception: long at memory location” at this line :
pDev->DrawIndexedPrimitive(D3DPT_TRIANGLELIST, 0, 0, m_Size * m_Size, 0, m_TriangleCount);

pDev is LPDIRECT3DDEVICE9 and I used DirectX 9.0.
I don’t know what ‘long at memory location’ means exactly.
Why the message is printed at this line?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T15:17:32+00:00Added an answer on June 9, 2026 at 3:17 pm

    You should ignore any “first chance exception” message that you see in the Output window, that just shows exceptions being used internally in the DirectX plumbing to deal with error conditions. An exception is only fatal when it doesn’t get caught.

    What you should never ignore is the return value of DrawIndexedPrimitive(). It returns an HRESULT, a status code that indicates whether or not the function call succeeded. The rough code ought to look like this:

    HRESULT hr = pDev->DrawIndexedPrimitive(...);
    if (FAILED(hr)) {
        // Report error code stored in "hr" and terminate
        //...
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I saw this article on msdn with the example http://msdn.microsoft.com/en-us/library/xfhwa508.aspx So i decided to
I saw many threads with this tittle, but no one really speak about reuse
I saw examples of asynchronous socket server here http://msdn.microsoft.com/en-us/library/fx6588te.aspx#Y0 How do I know the
I saw this kind of code at work: class FooPlugin : IPlugin // IPlugin
I have application which can export slides to PowerPoint. I'm using Microsoft.Office.Interop.PowerPoint.dll . This
I saw this question and it got me interested as surface caused a big
I'm running throuth Microsoft's 101 LINQ Samples , and I'm stumped on how this
I saw this code in Ajax in Action book and there are two things
Just couple of days ago I saw my friend was using Microsoft Visual studio
I saw this quote in this question : MS support is poor, except when

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.