Skip to main content
0 votes
0 answers
166 views

it -> a random valid vector iterator const int kLookAheadIndex -> a random number auto it_ahead = std::max(it - kLookAheadIndex, path.cbegin()); // get a look-ahead point to look at I know ...
Bill Kotsias's user avatar
  • 3,420
-4 votes
0 answers
102 views

While implementing a Dijkstra-Search on a Graph, I call a seperate method to perform the search, handing it a pointer to my nodes and direct values for start/endpoint and array size. Notably,t he ...
Tom Tom's user avatar
-5 votes
1 answer
137 views

I'm doing an assignment for an engineering course I'm taking, and I'm testing my code as I go along. For some reason, it gives an error when I compare an array element to a value passed into my ...
Maxwell Rantilla's user avatar
0 votes
1 answer
92 views

the code below crashes with terminate called after throwing an instance of 'std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >' Aborted ...
user1407220's user avatar
-5 votes
2 answers
273 views

I want to try catch the free(hello); so that the free(world); can still be executed for freeing all allocated memory in the main program. int main() { const char *hello = "Hello World"; ...
stackbiz's user avatar
  • 1,916
3 votes
5 answers
264 views

I'm trying to reimplement the standard strlen function in C, and I'm closely replicating its behavior. I defined my function based on standard C declaration for strlen: size_t ft_strlen(const char *s);...
user31651582's user avatar
3 votes
1 answer
103 views

So i am trying to write basic string to integer function in x86 asm. I know there is a problem in my function str2int but i don't know which state causes error. #string2integer.s .data number: .long 0 ...
Umutcan Akyol's user avatar
0 votes
0 answers
54 views

We have a C++20 library that compiles several Boost modules and statically links their object files into our shared library. One of those modules is Boost.Stacktrace. We compile this library, and a ...
Nick Williams's user avatar
0 votes
0 answers
87 views

I want to test the EncryptMessage and DecryptMessage functions to encrypt and decrypt a simple string using my machine's (current process's) credentials. But I am getting a segmentation fault: ...
Node.JS's user avatar
  • 1,712
0 votes
2 answers
118 views

I'm trying to run the basic console Quill logging library example found here: #include "quill/Backend.h" #include "quill/Frontend.h" #include "quill/LogMacros.h" #include ...
Andrew's user avatar
  • 668
3 votes
3 answers
144 views

I want to change the data type of a column of a table in a DuckDB Database. With query2_c= ALTER TABLE populationShort ALTER Year SET DATA TYPE DATE; (C Language Binding) I get Segmentation fault (...
Raphael10's user avatar
  • 3,246
0 votes
1 answer
57 views

I am trying to create a java FX based visual in an editor. As a first step I tried to create an FXCanvas like this: public class ModelEditorView extends EditorPart { public static String ID = &...
Árpád Magosányi's user avatar
0 votes
0 answers
38 views

After logging in system freezes (nothing works, only reboot helps). In dmesg I found that: [ 6761.970234] gnome-shell[8652]: segfault at 0 ip 00007fa0b4e93e24 sp 00007ffdfeb10a90 error 4 in libgio-2.0....
RandomInternetUser's user avatar
4 votes
1 answer
106 views

I came across an issue that leads to a segfault and I'm totally in the dark as to why this is happening. I managed to recreate the issue in a fairly minimal working example, see below. I was trying to ...
JorenHeit's user avatar
  • 4,079
0 votes
0 answers
90 views

I have been developing a head's up display for a formula student car: void fill_bar(lv_obj_t *canvas_obj, lv_coord_t center_x, lv_coord_t center_y, lv_coord_t radius1, lv_coord_t radius2,...
Lipin Kariappa's user avatar

15 30 50 per page
1
2 3 4 5
908