# Assertion failed: (((HRESULT)(::DwmExtendFrameIntoClientArea(HWnd, &Margins))) \>= 0) \[File:D:\\build\\++Distro\\Sync\\Engine\\Source\\Runtime\\ApplicationCore\\Private\\Windows\\WindowsWindow.cpp\] \[Line: 359\]

**URL:** <https://forums.unrealengine.com/t/assertion-failed-hresult-dwmextendframeintoclientarea-hwnd-margins-0-file-build-distro-sync-engine-source-runtime-applicationcore-private-windows-windowswindow-cpp-line-359/2693404>\
**Category:** Debugging, Optimization, & Profiling\
**Tags:** unreal-engine\
**Created:** [January 19, 2026, 8:15pm UTC](https://forums.unrealengine.com/t/assertion-failed-hresult-dwmextendframeintoclientarea-hwnd-margins-0-file-build-distro-sync-engine-source-runtime-applicationcore-private-windows-windowswindow-cpp-line-359/2693404 "2026-01-19T20:15:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Voteless2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Voteless2](https://forums.unrealengine.com/u/Voteless2)\
**Post date:** [January 19, 2026, 8:15pm UTC](https://forums.unrealengine.com/t/assertion-failed-hresult-dwmextendframeintoclientarea-hwnd-margins-0-file-build-distro-sync-engine-source-runtime-applicationcore-private-windows-windowswindow-cpp-line-359/2693404/1 "2026-01-19T20:15:21Z")

</div>

im getting this does anyone know hoe to fix that issue

LoginId:ce0e333a47efd735f657e4b008aaa5c2 EpicAccountId:2e1cfa792d7d49a084a36c0d4b1144b8 Assertion failed: (((HRESULT)(::DwmExtendFrameIntoClientArea(HWnd, &Margins))) \>= 0) [File:D:\build\++Distro\Sync\Engine\Source\Runtime\ApplicationCore\Private\Windows\WindowsWindow.cpp] [Line: 359] EpicGamesLauncher EpicGamesLauncher EpicGamesLauncher EpicGamesLauncher user32 user32 EpicGamesLauncher EpicGamesLauncher EpicGamesLauncher EpicGamesLauncher EpicGamesLauncher EpicGamesLauncher EpicGamesLauncher EpicGamesLauncher EpicGamesLauncher EpicGamesLauncher EpicGamesLauncher EpicGamesLauncher EpicGamesLauncher kernel32 ntdll

---

<div class="post-metadata">

**Author:** ![AuraIsland](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AuraIsland](https://forums.unrealengine.com/u/AuraIsland)\
**Post date:** [February 24, 2026, 2:18am UTC](https://forums.unrealengine.com/t/assertion-failed-hresult-dwmextendframeintoclientarea-hwnd-margins-0-file-build-distro-sync-engine-source-runtime-applicationcore-private-windows-windowswindow-cpp-line-359/2693404/2 "2026-02-24T02:18:18Z")

</div>

Hey, did you ever fix this? I don’t see anyone talking about this and it makes UEFN unusable for me, even formated my PC, changed drivers but nothing helped.

---

<div class="post-metadata">

**Author:** ![david\_bran98](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@david\_bran98](https://forums.unrealengine.com/u/david_bran98)\
**Post date:** [March 10, 2026, 4:56pm UTC](https://forums.unrealengine.com/t/assertion-failed-hresult-dwmextendframeintoclientarea-hwnd-margins-0-file-build-distro-sync-engine-source-runtime-applicationcore-private-windows-windowswindow-cpp-line-359/2693404/3 "2026-03-10T16:56:58Z")

</div>

Full error stag.

Fatal error: [File:D:\build++Distro\Sync\Engine\Source\Runtime\Core\Private\GenericPlatform\GenericPlatformMemory.cpp] [Line: 263]  
Ran out of memory allocating 528384 (0.5 MiB) bytes with alignment 0. Last error msg: The paging file is too small for this operation to complete..  
0x00007ff78f2531bd EpicGamesLauncher.exe!UnknownFunction   
0x00007ff78f266a43 EpicGamesLauncher.exe!UnknownFunction   
0x00007ff78f27da69 EpicGamesLauncher.exe!UnknownFunction   
0x00007ff78f27d3a9 EpicGamesLauncher.exe!UnknownFunction   
0x00007ff78f27d0cd EpicGamesLauncher.exe!UnknownFunction   
0x00007ff78f2aca23 EpicGamesLauncher.exe!UnknownFunction   
0x00007ff7910ff106 EpicGamesLauncher.exe!UnknownFunction   
0x00007ff7910fe541 EpicGamesLauncher.exe!UnknownFunction   
0x00007ff78f8448e1 EpicGamesLauncher.exe!UnknownFunction   
0x00007ff78f8440fb EpicGamesLauncher.exe!UnknownFunction   
0x00007ff78f844196 EpicGamesLauncher.exe!UnknownFunction   
0x00007ff78f4107a4 EpicGamesLauncher.exe!UnknownFunction   
0x00007ff78f4104a9 EpicGamesLauncher.exe!UnknownFunction   
0x00007ffb0f4de8d7 KERNEL32.DLL!UnknownFunction   
0x00007ffb1010c48c ntdll.dll!UnknownFunction

---

<div class="post-metadata">

**Author:** ![david\_bran98](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@david\_bran98](https://forums.unrealengine.com/u/david_bran98)\
**Post date:** [March 10, 2026, 4:57pm UTC](https://forums.unrealengine.com/t/assertion-failed-hresult-dwmextendframeintoclientarea-hwnd-margins-0-file-build-distro-sync-engine-source-runtime-applicationcore-private-windows-windowswindow-cpp-line-359/2693404/4 "2026-03-10T16:57:35Z")

</div>

Hi. Is there a solution for this? I have same error and can’t seam to manage to fix it:

Assertion failed: (((HRESULT)(::DwmExtendFrameIntoClientArea(HWnd, &Margins))) \>= 0) [File:D:\build++Distro\Sync\Engine\Source\Runtime\ApplicationCore\Private\Windows\WindowsWindow.cpp] [Line: 359]

Thank you in advance.
