# Function call is missing argument. Building Crash Report Client. SlateApplication.cpp:3822:65: error: too few arguments to function call, expected 3, have 2

**URL:** <https://forums.unrealengine.com/t/function-call-is-missing-argument-building-crash-report-client-slateapplication-cpp65-error-too-few-arguments-to-function-call-expected-3-have-2/472518>\
**Category:** C++\
**Tags:** build, unreal-engine, question, function-signature\
**Created:** [October 6, 2020, 11:53pm UTC](https://forums.unrealengine.com/t/function-call-is-missing-argument-building-crash-report-client-slateapplication-cpp65-error-too-few-arguments-to-function-call-expected-3-have-2/472518 "2020-10-06T23:53:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![etoven](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@etoven](https://forums.unrealengine.com/u/etoven)\
**Post date:** [October 6, 2020, 11:53pm UTC](https://forums.unrealengine.com/t/function-call-is-missing-argument-building-crash-report-client-slateapplication-cpp65-error-too-few-arguments-to-function-call-expected-3-have-2/472518/1 "2020-10-06T23:53:09Z")

</div>

Commit - 1edb47ce07caa9a97761668e2a0b91a129570808

If you guys can fix it sooner. Please let me know so I can repull it… Want to check out this build.  
Build blew up. Will post a fix, and maybe a pull request if you guys want. Looking to see if I can get it going.

```
Programs/UnrealEngine-master/Engine/Intermediate/Build/Linux/B4D820EA/CrashReportClient/Shipping/Slate/Module.Slate.1_of_5.cpp:8:

UnrealEngine-master/Engine/Source/Runtime/Slate/Private/Framework/Application/SlateApplication.cpp:3822:65: error: too few arguments to function call, expected 3, have 2
Renderer->PrepareToTakeScreenshot(ScreenshotRect, &OutColorData);
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^

UnrealEngine-master/Engine/Source/Runtime/SlateCore/Public/Rendering/SlateRenderer.h:426:2: note: 'PrepareToTakeScreenshot' declared here virtual void PrepareToTakeScreenshot(const FIntRect& Rect, TArray<FColor>* OutColorData, SWindow* InScreenshotWindow) {}
```

---

<div class="post-metadata">

**Author:** ![etoven](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@etoven](https://forums.unrealengine.com/u/etoven)\
**Post date:** [October 7, 2020, 12:46am UTC](https://forums.unrealengine.com/t/function-call-is-missing-argument-building-crash-report-client-slateapplication-cpp65-error-too-few-arguments-to-function-call-expected-3-have-2/472518/2 "2020-10-07T00:46:21Z")

</div>

No Clue if I did this right, but possible fix is on line 3822:  
Crash report client builds without complaint at least so far.

```
SWindow* SlateWindow = WidgetWindow.Get(); 
Renderer->PrepareToTakeScreenshot(ScreenshotRect, &OutColorData, SlateWindow);
```

---

<div class="post-metadata">

**Author:** ![etoven](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@etoven](https://forums.unrealengine.com/u/etoven)\
**Post date:** [October 7, 2020, 1:42am UTC](https://forums.unrealengine.com/t/function-call-is-missing-argument-building-crash-report-client-slateapplication-cpp65-error-too-few-arguments-to-function-call-expected-3-have-2/472518/3 "2020-10-07T01:42:30Z")

</div>

Well, I guess my fix was correct, but my changes where already patched in the git… Somehow I pulled the regression. Not sure what happened there. I pulled after the commit. But anyways. The new version on master jives with mine.
