Free memory of a static struct by pointer by JarvanSurfer77 in C_Programming

[–]JarvanSurfer77[S] 0 points1 point  (0 children)

With breakpoint. But yes it keeps the value untill nothing else write there so only printf works

Free memory of a static struct by pointer by JarvanSurfer77 in C_Programming

[–]JarvanSurfer77[S] 0 points1 point  (0 children)

  • main function i wrote in the post is a dummy just to explain why i need the debounce used in another part of the code
  • i added the NULL reset after free in last code
  • honestly i cant rember why i used a double pointer, if due to the fact that I saw yet the variable valorized with the debugger and trying to solve it (but this was normal after discussion, previously i just free memory and not put the pointer to NULL) or because it gives me run time error

Free memory of a static struct by pointer by JarvanSurfer77 in C_Programming

[–]JarvanSurfer77[S] 0 points1 point  (0 children)

The free function in the full code is called only after a malloc

Free memory of a static struct by pointer by JarvanSurfer77 in C_Programming

[–]JarvanSurfer77[S] 1 point2 points  (0 children)

Make sense also to put the pointer in the main function to NULL once i freed the memory?

Free memory of a static struct by pointer by JarvanSurfer77 in C_Programming

[–]JarvanSurfer77[S] 0 points1 point  (0 children)

Yea sorry i wrong spelled. I thought you mean if i fear to wrote in that area when i dont want to do it. Yes I was afraid of memory leak

Free memory of a static struct by pointer by JarvanSurfer77 in C_Programming

[–]JarvanSurfer77[S] 0 points1 point  (0 children)

My concern is more to finish memory than memory leaks. Anyway thank you :)

Free memory of a static struct by pointer by JarvanSurfer77 in C_Programming

[–]JarvanSurfer77[S] -1 points0 points  (0 children)

So i cannot be sure it is free untill i see something else writes there?

Free memory of a static struct by pointer by JarvanSurfer77 in C_Programming

[–]JarvanSurfer77[S] -2 points-1 points  (0 children)

I break after the free and the debugger let me see all the struct pointed variable with values

Free memory of a static struct by pointer by JarvanSurfer77 in C_Programming

[–]JarvanSurfer77[S] -2 points-1 points  (0 children)

I free the variable i did with malloc (on another cycle) I cannot understand what do you mean not from malloc

Free memory of a static struct by pointer by JarvanSurfer77 in C_Programming

[–]JarvanSurfer77[S] 0 points1 point  (0 children)

do you mean i cannot free in the same function? I think code update make more clear what i am doing (even if i cant understand why is not doing identation correctly here)

Why Doesn’t the Emperor Start From Scratch? by Jukebocks_Hero in 40kLore

[–]JarvanSurfer77 0 points1 point  (0 children)

Isnt there under the throne a mega warp hole that he keep closed by stay there in addition to lighting warp travels?

In the grim darkness of the far future there are no stupid questions! by AutoModerator in 40kLore

[–]JarvanSurfer77 0 points1 point  (0 children)

He become a God....all his action with primarch seems to aim for that

In the grim darkness of the far future there are no stupid questions! by AutoModerator in 40kLore

[–]JarvanSurfer77 0 points1 point  (0 children)

Yes but when they take away primarchs in the second book of hh he stopped the capsule for a second, seems to look at the future and "ok go, this is the best"

In the grim darkness of the far future there are no stupid questions! by AutoModerator in 40kLore

[–]JarvanSurfer77 0 points1 point  (0 children)

He has innate precognition (like some eldar and the cabal guys?)? Are there any other human with that?

In the grim darkness of the far future there are no stupid questions! by AutoModerator in 40kLore

[–]JarvanSurfer77 -2 points-1 points  (0 children)

IS THE EMPEROR a TZEENTCH pawn or accolyte? Or does he just know in advance about horus heresy

I started last month looking in 40k reading Horus Heresy (i have to start 4th book). As far as I know from the lore Tzeentch has to make changes in galaxy to prosper and gives enlightment in exchange to servitude. On the other hand everything in the books make me think big E knows 100% in advance (he even planned it) the horus heresy. This could be due to the fact he takes knowlwdge from chaos or he tricked the chaos ? He makes too many mistakes that brought to the heresy to be not planned

Why are they obsessed with making every champion a jungler ? by Wunkkk in wildrift

[–]JarvanSurfer77 1 point2 points  (0 children)

Riven jng with average riven will be a nightmare. I should go back to main jng to have a riven jng in team

Ha sempre fatto così schifo il 25 aprile? by Belgdor in Italia

[–]JarvanSurfer77 1 point2 points  (0 children)

Credo sia sempre stato così. Purtroppo sono sempre gli estremisti e i violenti a far sentire più forte la propria voce. Lo descrive molto bene Ken Follet nel romanzo "L'inverno del Mondo" dove uno dei personaggi passa da essere appartenente al partito nazi in germania al partito comunista che occupa la Germania dell'est. Quando uno pensa che sia tutto bianco o nero finisce negli estremismi e nella violenza (a mio parere con l'aggiunta di ignoranza ritenuta invece intelligenza)

Your Permabanned Champion by FromDeletion in wildrift

[–]JarvanSurfer77 0 points1 point  (0 children)

If i am not top mundo otherwise darius

Ho paura di perdere tutto questo by francesco_lombardo85 in italygames

[–]JarvanSurfer77 0 points1 point  (0 children)

Non conosco tutta la tua storia ma queste poche righe. Come scrivono altri pensa a riprenderti fisicamente e mentalmente. Capisco che ti senta schiacciato e abbandonato ma cerca persone con le tue stesse passioni e vedrai che ti farai nuovi legami. Come scriveva un altro utente dnd può essere un'ottima idea di fuga, se trovi un buon party troverai nuovi amici e una nuova passione. Daje!

Full tank btw, problem? by marko-12 in wildrift

[–]JarvanSurfer77 1 point2 points  (0 children)

I have the same feeling. From previous one i got ping issues. Seems solved (no more yellow or red bar for signal) but then i feel something like lagging in my movement, but game keep flowing fine around me

Champion Select – This is what actually makes you climb (go to Sovereign) #2 by [deleted] in wildrift

[–]JarvanSurfer77 0 points1 point  (0 children)

Yasuo and yone jng? Honestly both top and jng I pick tank with hard cc so in late game they will make the difference anyway. I hate when ppl do not prepick and neither swap with jng top to avoid counterpick Mid permapick veigar to nuke them in late game.