.dark4
✅ Schedule event at future DateTime based on DateOnly input, doesn't work if called <2min before
It seems to work fine during testing, but when I call
ScheduleMethod(DateOnly);
too close to the trigger time I get an error. System.ArgumentOutOfRangeExemption
The added or subtracted value results in an un-representable DateTime. I tested this morning at approx 6:53am and it calculated the Time unit trigger, closed and tried again at approx 6:58am and got the error.3 replies
❔ Memory leak leading to overflow crash if server doesn't gracefully close socket with my client app
if my client app has a socket open with server, and server stops working/closes my client app gets a runaway memory leak that causes overflow. Typically when the server closes the socket what happens to the client? Should I poll the socket connection to make sure it's open and if closed, stop the socket thread (background = true)? Trying to figure out how to go abut fixing the memory leak.
this is how I open the socket in my winform client
12 replies