mmozeiko Yes, currently compilers use stack like this. But nothing is preventing compiler writers…
Show us the commandline you are invoking. Probably forgot to put something in quotes.
Hi there fellow Handmade Heroes!
I've just started the series, and not a big fan of emacs. Tryin…
Mattie —
If you have to explicitly declare that you're going to be referencing data in a "popped" stack fr…
Another good code to look at: https://github.com/emoon/minifb
It's a very small library that open…
Yes, currently compilers use stack like this. But nothing is preventing compiler writers to use/a…
One more tip on STL containers - preallocate memory for containers before using them (with reserv…
Adam —
Just an update to this, thought I would add in a link I found as a helpful starting point for any…
Hoho, I didn't know about unordered_map, maybe I should read the STL documentation... :)
Most of…
Hello everyone!
Casey, just wanted to point out that in the process of replacing the "slot" thin…
I don't even know where to complain about my previous new topic being lost, I guess a moderator c…
That's a much bigger difference than I have personally seen in practice. You have to know visual…
Isn't the nature of stack allocation such that if a frame has been popped out, that frame is esse…
with a simple array template I was able to beat std::vector by about 7x for one use case.
Could…
While vector and unordered_map may be among the more performant containers in the STL, they have …
Also, if you have the option for a newish compiler, the ranged base for loops can get rid of many…
I don't know why, wherever I go, whichever website I visit, anything that even remotely attempts …
itzjac —
That's the reason! Thanks!
Oh, I see the problem now.
First of all - when such program is compiled with optimizations turne…
itzjac —
I've got it.
1cl -Ox -F4194304 -FC -Zi ..\code\Source.cpp user32.lib gdi32.lib
With such …
itzjac —
I don't know how would I corrupt my stack by entering WinMain, the big
array is declared right in…
If you are embracing C++ then I see no reason to not use STL.
And if you don't care about items …
Are you sure it is allocation that crashes not some stack corruption?
_chkstk typically asserts i…
itzjac —
Alright I found the problem, Debug builds.
How come your builds are by default in release mode?
…
itzjac —
Hi!
Thank you for the hint. Still doesn't work.
I tried also executing the commands from an adm…
I used to write all my own datastructures, and used template based linked lists a LOT. I pretty m…
I count four in favor of issue creation and none against, so I've created the issues I skipped th…
I used my remedial Joomla skills to add a "Search the Forums" option to the "Your Account" menu t…
dvkirn —
Techne is a text editor partially inspired by HMH that I've been working on in my spare time. I d…
We could change it to a SafeTruncateToInt16 if you remind me...
- Casey