canton7
canton7
CC#
Created by DevLop games on 6/27/2024 in #help
Need help with video processing
2 replies
CC#
Created by Al3mid3x on 6/27/2024 in #help
✅ NullReferenceException for a array of bytes (image)
$close
14 replies
CC#
Created by Al3mid3x on 6/27/2024 in #help
✅ NullReferenceException for a array of bytes (image)
Yes
14 replies
CC#
Created by Al3mid3x on 6/27/2024 in #help
✅ NullReferenceException for a array of bytes (image)
Model is null
14 replies
CC#
Created by Citrus limon on 6/27/2024 in #help
✅ How do I get rid of 'System.ArgumentOutOfRangeException'
It's a length, not an end index
48 replies
CC#
Created by Citrus limon on 6/27/2024 in #help
✅ How do I get rid of 'System.ArgumentOutOfRangeException'
Let's look at the docs (https://learn.microsoft.com/en-us/dotnet/api/system.string.substring?view=net-8.0#system-string-substring(system-int32-system-int32)):
public string Substring (int startIndex, int length); length Int32 The number of characters in the substring.
48 replies
CC#
Created by Davaaron on 6/26/2024 in #help
Why do i need to pass in the generics here?
How is it supposed to infer TOutput? It doesn't appear as one of the parameters, so it can't use the type of a parameter to figure it out
7 replies
CC#
Created by Davaaron on 6/26/2024 in #help
Why do i need to pass in the generics here?
IGitCommandHandler.ExecuteAsync is a method you wrote?
7 replies
CC#
Created by engineertdog on 6/26/2024 in #help
Uncaught exception
At the end of the day, when VS decides to break on an exception is just a best guess. You can untick the little box in the pop-up if it gets it wrong
13 replies
CC#
Created by engineertdog on 6/26/2024 in #help
Uncaught exception
Because it's user-unhandled, VS breaks when it's thrown
13 replies
CC#
Created by engineertdog on 6/26/2024 in #help
Uncaught exception
The body of RunImpersonated is something like (hugely simplified):
void RunImpersonated(,..., Action action)
{
try
{
action();
}
catch
{
// ...
throw;
}
}
void RunImpersonated(,..., Action action)
{
try
{
action();
}
catch
{
// ...
throw;
}
}
Because your exception is being caught by non-user code, it gets counted as user-unhandled. Yes I know you catch it later, but the first time it's thrown it's caught be non-user code
13 replies
CC#
Created by engineertdog on 6/26/2024 in #help
Uncaught exception
I tried to explain above
13 replies
CC#
Created by Biton6The9Gever on 6/26/2024 in #help
Step up my programming level
Discussed in #career-talk
3 replies
CC#
Created by Mih4n on 6/26/2024 in #help
thumbnail gen(doc, excel)
The term you're after is "rasteriser", but it's not a simple problem
4 replies
CC#
Created by Mih4n on 6/26/2024 in #help
thumbnail gen(doc, excel)
What's your question exactly?
4 replies
CC#
Created by engineertdog on 6/26/2024 in #help
Uncaught exception
VS will break (by default) when an exception is thrown, and is "user-unhandled".
13 replies
CC#
Created by engineertdog on 6/26/2024 in #help
Uncaught exception
So WindowsIdentity.RunImpersonated is catching the exception internally, then re-throwing it
13 replies
CC#
Created by engineertdog on 6/26/2024 in #help
Uncaught exception
https://devblogs.microsoft.com/devops/understanding-exceptions-while-debugging-with-visual-studio/:
User-unhandled Exceptions: When a first chance exception is not caught (handled) in user code and is caught in “External Code” on the call stack, this is classified as a “user-unhandled” exception. This classification is only applicable when debugging Managed or JavaScript applications with Just My Codeenabled.
13 replies
CC#
Created by DeaDo on 6/26/2024 in #help
UseStaticFiles for HTML
24 replies
CC#
Created by DeaDo on 6/26/2024 in #help
UseStaticFiles for HTML
Sure
24 replies