Skip to content
This repository has been archived by the owner on Mar 30, 2019. It is now read-only.

GraphicsAdapter type initialization exception #389

Closed
guygodin opened this issue May 17, 2014 · 3 comments
Closed

GraphicsAdapter type initialization exception #389

guygodin opened this issue May 17, 2014 · 3 comments

Comments

@guygodin
Copy link

I get the following exception when using the SharpDX.Toolkit.Graphics of the DirectX 11_2 folder on Windows 7:

Text length must be less than 64 characters long.

I understand that some of the functionality is only available on Windows 8 but I was under the impression that I could reference the 11_2 dlls in my project and make checks at runtime before calling win8 specific APIs. What is the recommended approach to use Win8 DXGI functionality (desktop duplication for example) when running on Win8 and fallback to another method on Win7 or below? Is there a way to do this without creating separate projects for each platform?

Thanks

@xoofx
Copy link
Member

xoofx commented May 17, 2014

First time hearing this exception message. Could you give us more context: is it reproducible with a SharpDX sample? Do you have a stacktrace (even without lines)?. DX11.2 should work on Windows 7, though don't know if the Toolkit is working well in this configuration. As long as it is not using any features from DX11.2, that should be fine but obviously there is something wrong somewhere.

@guygodin
Copy link
Author

This happend with SharpDX 2.5 in win7, it was from a user, the only callstack I had was that it was thrown by the GraphicsAdapter static constructor. I couldnt repro it in a VM with 2.6 (just tried). Guess we can mark as closed. I'll re-open if I can repro it. Thanks for the info.

@ArtiomCiumac
Copy link
Contributor

I suppose the problem is in the environment - for example video driver can report a very long adapter description (just a guess).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants