Timinator
Timinator
CC#
Created by Timinator on 11/14/2023 in #help
HttpListener
after all the server does not prematurely terminate the connection and if the clients no longer interested the request should be discarded anyways right?
7 replies
CC#
Created by Timinator on 11/14/2023 in #help
HttpListener
hm so better just catch it in the try catch block and handle it individually?
7 replies
CC#
Created by Timinator on 11/14/2023 in #help
HttpListener
the documentation wasnt very helpful at first glance, probably partially because the HTTP protocoll is asynchronous in nature
7 replies
CC#
Created by Timinator on 3/26/2023 in #help
❔ PInvoke, Reflection or winapi for loading a DLL?
its not really hard to change either implementation anyways
186 replies
CC#
Created by Timinator on 3/26/2023 in #help
❔ PInvoke, Reflection or winapi for loading a DLL?
up to the programmer whos using the lib to decide
186 replies
CC#
Created by Timinator on 3/26/2023 in #help
❔ PInvoke, Reflection or winapi for loading a DLL?
how so
186 replies
CC#
Created by Timinator on 3/26/2023 in #help
❔ PInvoke, Reflection or winapi for loading a DLL?
tbh if u dont play with ur OS settings and dont install faulty ram, most likely nothing ever happens but better safe than sorry
186 replies
CC#
Created by Timinator on 3/26/2023 in #help
❔ PInvoke, Reflection or winapi for loading a DLL?
the alternative is to hope that nothing breaks
186 replies
CC#
Created by Timinator on 3/26/2023 in #help
❔ PInvoke, Reflection or winapi for loading a DLL?
xD
186 replies
CC#
Created by Timinator on 3/26/2023 in #help
❔ PInvoke, Reflection or winapi for loading a DLL?
well what is the alternative even std::vector can throw a bad alloc
186 replies
CC#
Created by Timinator on 3/26/2023 in #help
❔ PInvoke, Reflection or winapi for loading a DLL?
in which case, you have undefined behavior
186 replies
CC#
Created by Timinator on 3/26/2023 in #help
❔ PInvoke, Reflection or winapi for loading a DLL?
well if you attempt to allocate memory on the heap and the underlying OS and to that extend kernel is not able to allocate the memory for you because, not enough ram, not enough consequtive free memory in ram, no or insufficient page file, corrupted hardware(RAM) etc etc then it returns a null pointer which tells u that the OS was not able to allocate memory for you
186 replies
CC#
Created by Timinator on 3/26/2023 in #help
❔ PInvoke, Reflection or winapi for loading a DLL?
yes
186 replies
CC#
Created by Timinator on 3/26/2023 in #help
❔ PInvoke, Reflection or winapi for loading a DLL?
and then everything goes boom if i have a bad alloc
186 replies
CC#
Created by Timinator on 3/26/2023 in #help
❔ PInvoke, Reflection or winapi for loading a DLL?
i can change it to reference, a range based for loop requires more time than using vector.size() to get the size, ppArray is not too big but i want it of dynamic size, i check if its not null because heap allocations can throw bad allocs
186 replies
CC#
Created by Timinator on 3/26/2023 in #help
❔ PInvoke, Reflection or winapi for loading a DLL?
1 sec
186 replies
CC#
Created by Timinator on 3/26/2023 in #help
❔ PInvoke, Reflection or winapi for loading a DLL?
it doesnt like me using values.size() to index the size somehow if i use a primitive int and iterate trough the vector til the end and increment the index and then use this index theres no problem whatsoever
186 replies
CC#
Created by Timinator on 3/26/2023 in #help
❔ PInvoke, Reflection or winapi for loading a DLL?
it complained just the same with a char** allocated with malloc this way xD
186 replies
CC#
Created by Timinator on 3/26/2023 in #help
❔ PInvoke, Reflection or winapi for loading a DLL?
hm so using a combination of both?
186 replies
CC#
Created by Timinator on 3/26/2023 in #help
❔ PInvoke, Reflection or winapi for loading a DLL?
and ik suppressing a warning isnt the best idea but i tested throughly to figure that the IDE throws a false warning
186 replies