I just figured something out. This new ncurses code I wrote worked _PERFECTLY_. ...until I started to use it with some strings in the upper-level language that had "%" in them. OMFG it just hit me like a gold brick wrapped in a manifesto on Prussian military history >
-
-
Show this thread
-
3/ ncurses printw() is like printf() in that it takes a FORMAT string. The "%" in the string I was printing was effectively an escape character, and then printw() was looking at the next arg (non existent) to find the variable to be subbed in, and was grabbing some stack val
Show this thread -
4/ and so I was BOTH getting ugly printouts AND - on occasion - memory corruption I repeathttps://twitter.com/MorlockP/status/1108410606556798978 …
Show this thread -
5/ SHOW ME ON THE MEMORY MODEL WHERE THE BAD PROGRAMMER TOUCHED HIMSELFhttps://twitter.com/chrylis/status/1108411912885280770 …
Show this thread -
7/ hahahah you sweet summer child I am working in an application that has its OWN memory model, and we're catching segv to do magic with it
Show this thread
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.