Re[4]: Comparable ли memory
От: Centaur Россия  
Дата: 06.12.04 17:10
Оценка:
Здравствуйте, Sergey, Вы писали:

S>Hello, flax!

S>You wrote on Mon, 06 Dec 2004 10:12:50 GMT:

SDB>>> Фунукции IsBad*Ptr() не подойдут?


f>> Т.е. они помогут выловить, является ли значение в массиве P[i] вообще

f>> указателем куда-либо или нет.

S>Они говорят ровно об одном — будет ли AV при записи/чтении по данному

S>адресу.

http://weblogs.asp.net/larryosterman/archive/2004/05/18/134471.aspx
[quote]The way you check for bad pointers on Win32 is by calling the IsBadReadPtr and IsBadWritePtr API. Michael Howard calls these APIs “CrashMyApplication” and “CorruptMemoryAndCrashMySystem” respectively. The problem with IsBadReadPtr/IsBadWritePtr is that they do exactly what they’re advertised as doing: They read and/or write to the memory location specified, with an exception handler wrapped around the read/write. If an exception is thrown, they fail, if not, they succeed.[/quote]
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.