Re: function pointers



cr88192 wrote:

there are different ways to invoke crashes, but the one I typically use is
this:
*(int *)-1=-1;

Why not assert(0), so you get the file and line without having to use a
debugger?

on linux, this option works better though, since linux crashes give a
general debugger-usable core dump (sadly absent on windows...).

I pity those poor windows developers :)

--
Ian Collins.
.