|
How come the guy is still employed?
|
# ¿ Mar 21, 2008 00:51 |
|
|
# ¿ Apr 30, 2024 03:28 |
|
more falafel please posted:$10 completely fake dollars says it doesn't work with GCC and -O3. Uh, wouldn't *(int*)13 = 3 cause a general protection fault (and possibly a bus error on archs that require aligned memory access), because you're trying to write the value 0x00000003 into memory at location 0x000000D ? I don't see how this has anything to do with interrupt 3.
|
# ¿ Jul 9, 2008 12:18 |
|
TSDK posted:Interrupt 3 is a break to debugger. Causing a general protection fault will also stop execution and drop you to the debugger in most cases. Oh ok, wouldn't it be easier to just do "int breakme=1/0;" or something then?
|
# ¿ Jul 9, 2008 12:33 |
|
Entheogen posted:what is so horrible on exiting when exception occurs? For some exceptions it makes sense, and you can print out what the message was before you exit anyways. It will shut down the entire web server/app server, which is probably not what you want to happen if a single PDF report gets screwed up.
|
# ¿ Jul 9, 2008 18:58 |
|
rt4 posted:I usually get a good chuckle by looking at the code that some affiliates think my employer should place on their websites. For some reason, in addition to the horror that is tracking pixels, they like to include JavaScript that generates tracking pixels. I found this in one today and was sincerely confused Not sure why they escape <img> and <iframe> tags, but it may be related to this: http://stackoverflow.com/questions/236073/why-split-the-script-tag-when-writing-it-with-document-write
|
# ¿ Jan 6, 2010 00:51 |