Giter Site home page Giter Site logo

Comments (5)

Csharper1972 avatar Csharper1972 commented on July 22, 2024

Any game that auto detect as directx 11 i'm getting this exception:

System.IndexOutOfRangeException was caught
HResult=-2146233080
Message=Index was outside the bounds of the array.
Source=Capture
StackTrace:
at Capture.Hook.DX11.DXFont.GetCharRect(Char c) in c:\Temp\hook\Direct3DHook-master\Capture\Hook\DX11\DXFont.cs:line 251
at Capture.Hook.DX11.DXSprite.DrawString(Int32 X, Int32 Y, String text, Int32 R, Int32 G, Int32 B, Int32 A, DXFont F) in c:\Temp\hook\Direct3DHook-master\Capture\Hook\DX11\DXSprite.cs:line 258
at Capture.Hook.DX11.DXOverlayEngine.Draw() in c:\Temp\hook\Direct3DHook-master\Capture\Hook\DX11\DXOverlayEngine.cs:line 145
at Capture.Hook.DXHookD3D11.PresentHook(IntPtr swapChainPtr, Int32 syncInterval, PresentFlags flags) in c:\Temp\hook\Direct3DHook-master\Capture\Hook\DXHookD3D11.cs:line 384
InnerException:

I didn't change anything but still every game that use directx 11 give this exception.

from direct3dhook.

justinstenning avatar justinstenning commented on July 22, 2024

Sounds like it is trying to draw a character that it hasn't prepared...

On Wednesday, 6 May 2015, Csharper1972 [email protected] wrote:

Any game that auto detect as directx 11 i'm getting this exception:

System.IndexOutOfRangeException was caught
HResult=-2146233080
Message=Index was outside the bounds of the array.
Source=Capture
StackTrace:
at Capture.Hook.DX11.DXFont.GetCharRect(Char c) in
c:\Temp\hook\Direct3DHook-master\Capture\Hook\DX11\DXFont.cs:line 251
at Capture.Hook.DX11.DXSprite.DrawString(Int32 X, Int32 Y, String text,
Int32 R, Int32 G, Int32 B, Int32 A, DXFont F) in
c:\Temp\hook\Direct3DHook-master\Capture\Hook\DX11\DXSprite.cs:line 258
at Capture.Hook.DX11.DXOverlayEngine.Draw() in
c:\Temp\hook\Direct3DHook-master\Capture\Hook\DX11\DXOverlayEngine.cs:line
145
at Capture.Hook.DXHookD3D11.PresentHook(IntPtr swapChainPtr, Int32
syncInterval, PresentFlags flags) in
c:\Temp\hook\Direct3DHook-master\Capture\Hook\DXHookD3D11.cs:line 384
InnerException:

I didn't change anything but still every game that use directx 11 give
this exception.

β€”
Reply to this email directly or view it on GitHub
#24 (comment)
.

from direct3dhook.

Csharper1972 avatar Csharper1972 commented on July 22, 2024

Strange, not my character since i didn't change anything or added anything.
If you a solution for that a code with a solution please inform me. Thank you.

from direct3dhook.

justinstenning avatar justinstenning commented on July 22, 2024

I suggest you attach the debugger to the target, and then run your host to
inject the assembly.

You should get a break on the exception, or otherwise work on getting a
breakpoint in there.

I haven't personally had this exception happen, but it sounds like it is
trying to find the character (whatever it is) and isn't finding it. This
could be an issue with locale or anything, I don't know, depends what is
trying to render text.

Regards,
Justin

On Thu, May 7, 2015 at 2:16 AM, Csharper1972 [email protected]
wrote:

Strange, not my character since i didn't change anything or added anything.
If you a solution for that a code with a solution please inform me. Thank
you.

β€”
Reply to this email directly or view it on GitHub
#24 (comment)
.

from direct3dhook.

justinstenning avatar justinstenning commented on July 22, 2024

Duplicate #26

from direct3dhook.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.