WIndows VM: specs advice

Looking for some advice. I run a 16gb machine OS is Ubuntu 18.04. I would like to create a VM running on Windows to use for gaming and excel and other windows utilities. What kind of specs should I set the VM on: memory etc…. what’s the max/optimum I can allocate to the VM/windows, 8gb,… Read More WIndows VM: specs advice

Dynamically allocated array changing contents unwantedly in C running on virtual machine

I have a function in which I dynamically allocate an array and then use it later, but it changes arbitrarily in between uses: void func(void){ //allocate two arrays. Tried both malloc and calloc my_obj* array = calloc(arr_length, sizeof(my_obj*)); my_obj2* array2 = calloc(arr_length_2, sizeof(my_obj2*)); //now I fill the first array with some items for(int i =… Read More Dynamically allocated array changing contents unwantedly in C running on virtual machine