c - Can looking at freed memory cause an access violation? -


Access can be a violation of access to free memory, and, if so, in what situation?

Yes, it can "login violation" ("partition fault" etc.) is a response that Usually OS / hardware is generated when the process is used (read only) as memory which is known as "free", "free" or "free" is inaccessible for any other reason . The main moment here is that the OS / hardware should know that memory is free. Memory Management Function of C Standard Library does not necessarily return the OS to free-small memory. They can (and will) keep it for future allocation. Therefore, in some cases "access to free-D memory" OS / hardware would not be the result of "memory entry". This memory has not been actually released. However, at some point the standard library can decide to withdraw the free memory collected on the OS, after which an attempt to reach that storage will normally result in "entry violation".


Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -