Home > Hresult 0x8876086c > Hresult 0x8876086c Error Code

Hresult 0x8876086c Error Code

here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about dxgeterrordescription Stack Overflow the company Business Learn more about hiring developers or posting ads with

D3derr_invalidcall

us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is _com_error a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up How can I retrieve error strings for DirectX 9 up vote 4 down vote

Createdevice

favorite 2 I want to retrieve error strings for DirectX 9, but I can find on the web is using the FormatMessage() and _com_error.ErrorMessage(), both of which fail me. hr = g_pd3dDevice->GetRenderTargetData(... ... // the debugger tells me hr = 0x8876086c FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, NULL, hr, 0, (LPTSTR)&lpBuf, 0, NULL)) // it returns 0 with lpBuf unallocated FormatMessage() fails and I use the it again with GetLastError() to see hresult values why FormatMessage() fails: "The system cannot find message text for message number 0x%1 in the message file for %2." _com_error.ErrorMessage() tells me "Unknown error 0x8876086c" c++ winapi com error-handling directx share|improve this question asked Nov 24 '12 at 16:41 LeOpArD 10429 BTW: is there a common way to get error strings for all HRESULT? –LeOpArD Nov 24 '12 at 16:45 Not really, error codes and messages are categorized. For example, network subsystem has its own codes and messages, DX has its own, etc. So you must know a type of operation you were performing in order to get a message corresponding to the error you are getting. –user405725 Nov 24 '12 at 17:00 Look at the d3d9.h header file for error codes. You'll find a match with D3DERR_INVALIDCALL, the string isn't going to tell you why you passed invalid arguments. Nor does your snippet. –Hans Passant Nov 24 '12 at 17:22 As you mentioned network APIs, I used GetLastError() with FormatMessage for winsock APIs and it works though MSDN says to use WSAGetLastError() instead. I don't know if it is a reliable way. –LeOpArD Nov 24 '12 at 17:24 1 @LeOpArD: Have a look here - alax.info/blog/1383 the tool covers

topic ForumsMembersHelp Files Developer Journals Gallery Calendar Downloads Resources Store Classifieds Tracker Links Home For Beginners Articles All Articles Post an Article Technical Game Programming General Programming Graphics Programming and Theory DirectX and XNA OpenGL and Vulkan Multiplayer and Network Programming Artificial Intelligence Math and Physics Mobile Development Middleware, Libraries, and Tools Virtual and Augmented Reality Creative Game Design Music and Sound Visual Arts Business Breaking into the Industry Production and Management Interviews Business and Law Event Coverage Forums All Forums Technical Game Programming General Programming Graphics Programming http://stackoverflow.com/questions/13543195/how-can-i-retrieve-error-strings-for-directx-9 and Theory DirectX and XNA OpenGL & Vulkan Multiplayer and Network Programming Artificial Intelligence Math and Physics Mobile & Console Development Build Systems & Source Control Middleware, Libraries, and Tools Virtual and Augmented Reality Creative Game Design Writing For Games Music and Sound Visual Arts Gallery Business Breaking into the Industry Business & Law Production & Management Community GDNet Lounge Coding Horrors Article http://www.gamedev.net/topic/579243-my-device-wont-reset/ Writing Comments, Suggestions and Ideas Your Announcements Hobby Project Classifieds Indie Project Showcase Community Developer Journals Gallery Classifieds Jobs Freelancers Hobby Projects GDNet+ Membership Store Marketplace Newsletter » Home » Forums » The Technical Side » DirectX and XNA Chat Watched Content New Content 0 My device won't reset!!! Started by cyberlorddan, Aug 10 2010 04:57 AM Old topic! Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic. You cannot reply to this topic 6 replies to this topic #1 cyberlorddan Members -Reputation: 122 Like 0Likes Like Posted 10 August 2010 - 04:57 AM I'm working on an engine for an RTS game and I've got a problem that should've been solved months ago: I can't resize the rendered target (800x600 looks fine (the original size), but when i maximize the window DirectX stretches everything to fit in 1280x1024).When i call device->reset(), the HRESULT gives -2005530516:Error lookup tool gives:HRESULT: 0x8876086c (2289436780)Name: D3DERR_INVALIDCALLDescription: Invalid callSeverity code: FailedFacility Code: FACILITY_D3D (2166)Error Code: 0x086c (2156)In WM_SI

[ DST ] Get VirtualBox Forum powered by phpBB © phpBB Group By any use of this Website, you agree to be bound by these Policies and Terms of Use Sponsored by

 
No related pages.