Re: Memmove causing program crashes, giving SIGTRAP in GDB(?)

matthew patton via Cygwin <[email protected]>
Newsgroups gmane.os.cygwin
Message-ID <[email protected]>
do what I suggested in my earlier post.
2 copies of the datastructure A and B. you only need to malloc them once at the beginning and also since only one thread manipulates the data, right?

When you're in a situation where you need to 'slide' the data to the right, just memcpy from the current to the new and offset by the sizeof_int16_t). No janky hanky panky and can't possibly have CPU or OS side-effects.

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.