[GH-ISSUE #598] Could not load 'SharpDX.DXGI' #494

Closed
opened 2026-02-26 09:31:39 +03:00 by kerem · 7 comments
Owner

Originally created by @grafanauser on GitHub (Feb 24, 2020).
Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/598

Originally assigned to: @NickeManarin on GitHub.

I have chosen the DirectX option in settings->Recorder. Then I used the download button for SharpDX. in Settings -> extras. But when i try to record something, this popups:

grafik

Originally created by @grafanauser on GitHub (Feb 24, 2020). Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/598 Originally assigned to: @NickeManarin on GitHub. I have chosen the DirectX option in settings->Recorder. Then I used the download button for SharpDX. in Settings -> extras. But when i try to record something, this popups: ![grafik](https://user-images.githubusercontent.com/47564534/75157167-da7f6a80-5713-11ea-82ee-9f198282bf00.png)
kerem 2026-02-26 09:31:39 +03:00
Author
Owner

@NickeManarin commented on GitHub (Feb 24, 2020):

Is your anti-virus blocking the access to the DLL?

https://github.com/NickeManarin/ScreenToGif/wiki/Help-▪-FAQ-▪-Missing-dependency-%28.Net-Framework-or-DLL%29

<!-- gh-comment-id:590333047 --> @NickeManarin commented on GitHub (Feb 24, 2020): Is your anti-virus blocking the access to the DLL? https://github.com/NickeManarin/ScreenToGif/wiki/Help-▪-FAQ-▪-Missing-dependency-%28.Net-Framework-or-DLL%29
Author
Owner

@grafanauser commented on GitHub (Feb 24, 2020):

it did not work on 2 different windows 10 computers. One with Windows defender and one with a different antivir tool. But I didnt get any antivirus warnings. And i didnt find any log mentioning that a file was blocked. Further information: I used the portable version of screenToGif. Starting it as admin did not help either.

But i now tried to use the installer instead of the portable version. Now it works.

PS: the wiki is hard to navigate. I checked the wiki, but did not find the link you posted. The wiki pages are collapsed by default which is not the case for other wikis on github. A wiki with a tree like structure on the right, would be more user friendly in my opinion.

PS2: awesome tool. :)

<!-- gh-comment-id:590341518 --> @grafanauser commented on GitHub (Feb 24, 2020): it did not work on 2 different windows 10 computers. One with Windows defender and one with a different antivir tool. But I didnt get any antivirus warnings. And i didnt find any log mentioning that a file was blocked. Further information: I used the portable version of screenToGif. Starting it as admin did not help either. But i now tried to use the installer instead of the portable version. Now it works. PS: the wiki is hard to navigate. I checked the wiki, but did not find the link you posted. The wiki pages are collapsed by default which is not the case for other wikis on github. A wiki with a tree like structure on the right, would be more user friendly in my opinion. PS2: awesome tool. :)
Author
Owner

@NickeManarin commented on GitHub (Feb 24, 2020):

Still with the portable version, did you check if the DLLs were blocked by Windows?

Right click on the DLLs > check if the file is blocked.
Also, where did you store the DLL's? Maybe it could be inside a folder that the app can't access.

<!-- gh-comment-id:590345445 --> @NickeManarin commented on GitHub (Feb 24, 2020): Still with the portable version, did you check if the DLLs were blocked by Windows? Right click on the DLLs > check if the file is blocked. Also, where did you store the DLL's? Maybe it could be inside a folder that the app can't access.
Author
Owner

@grafanauser commented on GitHub (Feb 24, 2020):

They are not blocked. No "unblock" button is shown. I checked all sharp dll files.

I tried out different storage location: download folder, desktop folder and now C:\Users\myUserName\Documents\screenToGif. the same error message appeared with the portable version.

When I compare the portable and the installed version now, both show the same path to SharpDx
grafik

But the portable version still has the error when i am trying to record, while the installed version does not. (or does the installed version does not use the shown path? i checked installing sharpDx in the installer when i installed it)

<!-- gh-comment-id:590358192 --> @grafanauser commented on GitHub (Feb 24, 2020): They are not blocked. No "unblock" button is shown. I checked all sharp dll files. I tried out different storage location: download folder, desktop folder and now C:\Users\myUserName\Documents\screenToGif. the same error message appeared with the portable version. When I compare the portable and the installed version now, both show the same path to SharpDx ![grafik](https://user-images.githubusercontent.com/47564534/75162059-30a4db80-571d-11ea-9242-da7579621ee5.png) But the portable version still has the error when i am trying to record, while the installed version does not. (or does the installed version does not use the shown path? i checked installing sharpDx in the installer when i installed it)
Author
Owner

@NickeManarin commented on GitHub (Feb 24, 2020):

Wait, I see what's happening. The app is unable to load the DLL's when they are not in the same folder as the executable.

I'm going to see if I can fix this.

<!-- gh-comment-id:590361377 --> @NickeManarin commented on GitHub (Feb 24, 2020): Wait, I see what's happening. The app is unable to load the DLL's when they are not in the same folder as the executable. I'm going to see if I can fix this.
Author
Owner

@grafanauser commented on GitHub (Feb 24, 2020):

you are right, the portable app works when the files are in the same folder. strange... I thought i tried that out first.

<!-- gh-comment-id:590385356 --> @grafanauser commented on GitHub (Feb 24, 2020): you are right, the portable app works when the files are in the same folder. strange... I thought i tried that out first.
Author
Owner

@NickeManarin commented on GitHub (Feb 24, 2020):

Fixed. It will be available with v2.21.

<!-- gh-comment-id:590572543 --> @NickeManarin commented on GitHub (Feb 24, 2020): Fixed. It will be available with v2.21.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ScreenToGif#494
No description provided.