Register - Login
Views: 99374528
Main - Memberlist - Active users - Calendar - Wiki - IRC Chat - Online users
Ranks - Rules/FAQ - Stats - Latest Posts - Color Chart - Smilies
04-23-22 08:44:42 PM
Jul - NO! GO TO STAR! - How to code in C++ New poll - New thread - Thread closed
Next newer thread | Next older thread
Rena
I had one (1) message in Discord deleted and proceeded to make a huge, huge mess about how it was a violation of free speech and how moderators are supposed to be spam janitors and nobody should have the right to tell me not to talk about school shootings
Level: 135


Posts: 639/5390
EXP: 29050151
For next: 284854

Since: 07-22-07

Pronouns: he/him/whatever
From: RSP Segment 6

Since last post: 332 days
Last activity: 332 days

Posted on 08-13-07 07:14:52 PM Link
JL2 - Post #639 - 08-13-07 02:14:52 PM
Day 22, rank 7; Level 24 (80.8%)
8409/10402 (76132/78125)
GPP: 178; GT: 50.421
1) Write some code.
2) Find a bug.
3) Add debug output to track down the bug.
4) Discover that adding output makes the problem not occur.
5) Remove the output code you added.
6) Discover that for some nonsensical reason, the problem still no longer occurs after restoring the code to the way it was before you added the output. The bug is still there, but no longer appears.
7) Smash head on keyboard.
8) Repeat a while later.



____________________
Raspberry
Thank you for my time here. I won't ever forget..
Level: 85


Posts: 92/1823
EXP: 5721903
For next: 176637

Since: 07-07-07

Pronouns: she/her

Since last post: 1.0 years
Last activity: 68 days

Posted on 08-20-07 08:37:12 PM Link
Heisenbugs ftl.
Rena
I had one (1) message in Discord deleted and proceeded to make a huge, huge mess about how it was a violation of free speech and how moderators are supposed to be spam janitors and nobody should have the right to tell me not to talk about school shootings
Level: 135


Posts: 724/5390
EXP: 29050151
For next: 284854

Since: 07-22-07

Pronouns: he/him/whatever
From: RSP Segment 6

Since last post: 332 days
Last activity: 332 days

Posted on 08-22-07 06:10:38 AM; last edit by HyperHacker on 08-22-07 07:22 AM Link
JL2 - Post #724 - 08-22-07 01:10:38 AM
Day 30, rank 7; Level 27 (40.4%)
5610/13884 (107885/116159)
GPP: 223; GT: 49.124
Know what else is fun? When a Windows API call fails but doesn't set the last error code so you might know why.

Also, interesting variation on the Heisenbug: You change something, but it doesn't appear to have any effect. However, once you make a second change and compile again, the first change starts taking effect too. It's as if you changed something, forgot to save, compiled, changed something else, saved, and compiled again, except I'm sure I saved both times, and the second change was in a different file anyway. And of course, the effect remains after undoing the second change.

My makefile probably needs tweaking. Those things are a PITA, and I don't mean Mexican food.

____________________
BlackNemesis13
1150
I am ***** but it's hard to pronounce, so you can call me Geno after the doll.
Level: 70


Posts: 9/1155
EXP: 2881299
For next: 134512

Since: 07-23-07

From: Columbus, Ohio

Since last post: 10.6 years
Last activity: 10.6 years

Posted on 08-24-07 09:11:10 PM Link
Wouldn't a pita be more like greek food?
Joe
Common spammer
🍬
Level: 111


Posts: 52/3392
EXP: 14488465
For next: 379895

Since: 08-02-07

From: Pororoca

Since last post: 2 days
Last activity: 48 min.

Posted on 08-25-07 06:31:06 PM Link
Actually, my dad buys it sometimes from the "Arabic store" so it would be Arabic food, not Greek.

____________________
Ninji

Birdo
Why did my user title say I'm a toaster anyway
Level: 88


Posts: 69/2014
EXP: 6632770
For next: 17894

Since: 07-26-07

Pronouns: he/him or they/them
From: Glasgow, Scotland

Since last post: 104 days
Last activity: 17 days

Posted on 08-26-07 11:29:07 AM Link
At the time of writing this post, I had..
Posts: 69 ~ Level: 10 ~ Exp: 3187

Originally posted by HyperHacker
1) Write some code.
2) Find a bug.
3) Add debug output to track down the bug.
4) Discover that adding output makes the problem not occur.
5) Remove the output code you added.
6) Discover that for some nonsensical reason, the problem still no longer occurs after restoring the code to the way it was before you added the output. The bug is still there, but no longer appears.
7) Smash head on keyboard.
8) Repeat a while later.



Hey, that's the exact way to code in VB, too! At least for me.

____________________


NSMB Editor 2.1
making awesome SMB remakes since 16/7/07
what? you want a new version already? are you joking?



Rena
I had one (1) message in Discord deleted and proceeded to make a huge, huge mess about how it was a violation of free speech and how moderators are supposed to be spam janitors and nobody should have the right to tell me not to talk about school shootings
Level: 135


Posts: 813/5390
EXP: 29050151
For next: 284854

Since: 07-22-07

Pronouns: he/him/whatever
From: RSP Segment 6

Since last post: 332 days
Last activity: 332 days

Posted on 08-28-07 06:26:50 AM; last edit by HyperHacker on 08-28-07 06:26 AM Link
JL2 - Post #813 - 08-28-07 01:26:50 AM
Day 36, rank 7; Level 29 (54.7%)
9058/16547 (140396/147885)

GPP: 259; GT: 45.147
I'm starting to wonder which part of my computer is defective. I mean, when I have to make clean, compile, make clean, and compile again to have my changes take effect... that doesn't make any sense.

____________________
roxahris
600
was seriously wounded, but the soul still burns.
Level: 52


Posts: 165/600
EXP: 1080353
For next: 3487

Since: 07-08-07

From: Somewhere.

Since last post: 9.3 years
Last activity: 8.6 years

Posted on 09-01-07 11:09:49 AM Link
Originally posted by Joe
Actually, my dad buys it sometimes from the "Arabic store" so it would be Arabic food, not Greek.

stfu


____________________
Layout removed; Color overload of red and green makes eyes hurt bad
Rena
I had one (1) message in Discord deleted and proceeded to make a huge, huge mess about how it was a violation of free speech and how moderators are supposed to be spam janitors and nobody should have the right to tell me not to talk about school shootings
Level: 135


Posts: 875/5390
EXP: 29050151
For next: 284854

Since: 07-22-07

Pronouns: he/him/whatever
From: RSP Segment 6

Since last post: 332 days
Last activity: 332 days

Posted on 09-04-07 07:39:43 AM; last edit by HyperHacker on 09-05-07 06:18 AM Link
JL2 - Post #875 - 09-04-07 02:39:43 AM
Day 43, rank 8; Level 31 (27.2%)
5294/19494 (171163/185363)
GPP: 293; GT: 44.150
New ones:
  • API call fails, but doesn't SetLastError(), or sometimes even returns success, so you have no way to tell what went wrong. Or it returns failure when it actually succeeded, because the return value that indicates failure is a valid return value on success as well.
  • "Invalid conversion from char* to unsigned char*" when passing to a function that doesn't do anything in which it would matter anyway.
  • For some reason, one of the more common side effects of memory corruption seems to be that malloc() will return pointers to blocks of already-allocated memory. You get two buffers that are at the same location and spend hours trying to figure out why one changes when you change the other. Or, your program will just close with no error message or anything. Stack overflow does this too. Just why did they decide the default exception handler should work this way?


More to come as I remember/find them.

Somewhat related, ever try installing Visual Studio 6, and when it asks if you want to reboot, select no? Here's the message you get when you do so:


Still better than IE6 "lol let's just reboot without any warning" though.

[edit] Weird one:
if(this->Text) free(this->Text);
this->Text = malloc(1);
causes memory corruption, but seemingly equivalent code:
char* NewStr;
NewStr = realloc(this->Text, 1);
if(!NewStr) return false;
this->Text = NewStr;
doesn't appear to. I suspect it's still there, somewhere, and this may not even have been the cause, but it's not breaking anymore. (Really, I'm more curious as to why I used the first method to begin with...)

[edit 2] Nah, should have known that was too easy. Also, new one: you run the program several times in a row, doing the exact same thing every time. The procedure involves no timers, random numbers, etc, so the results should be the same every time. In one instance, it does something different.

[hey more editing]
I've found what I suspect is the problem, and it's a fucking sneaky bastard. Basically, a class contains a pointer to some memory that's malloc()'d in the constructor and free()'d in the destructor. There's a function which returns one of these classes. By the looks of it, the compiler puts a copy of the class to be returned on the stack as the return value. In this case, however, I was discarding the return value, so the copy is immediately destroyed. When the copy gets destroyed, the destructor is called... see the problem? Since it's a copy it frees the buffer that the original is still using. That's my current theory, anyway...

____________________
Next newer thread | Next older thread
Jul - NO! GO TO STAR! - How to code in C++ New poll - New thread - Thread closed


Rusted Logic

Acmlmboard - commit 47be4dc [2021-08-23]
©2000-2022 Acmlm, Xkeeper, Kaito Sinclaire, et al.

28 database queries.
Query execution time:  0.102999 seconds
Script execution time:  0.027310 seconds
Total render time:  0.130309 seconds


TidyHTML vomit below
line 1 column 1 - Warning: missing <!DOCTYPE> declaration
line 119 column 11 - Warning: <form> isn't allowed in <table> elements
line 118 column 10 - Info: <table> previously mentioned
line 120 column 11 - Warning: missing <tr>
line 120 column 119 - Warning: missing </font> before </td>
line 124 column 16 - Warning: plain text isn't allowed in <tr> elements
line 120 column 11 - Info: <tr> previously mentioned
line 125 column 68 - Warning: missing </nobr> before </td>
line 141 column 68 - Warning: missing </nobr> before <tr>
line 147 column 35 - Warning: missing <tr>
line 147 column 50 - Warning: missing </font> before </td>
line 148 column 37 - Warning: unescaped & or unknown entity "&id"
line 147 column 182 - Warning: missing </font> before </table>
line 149 column 35 - Warning: missing <tr>
line 149 column 50 - Warning: missing </font> before </td>
line 149 column 91 - Warning: missing </font> before </table>
line 156 column 9 - Warning: <div> isn't allowed in <table> elements
line 152 column 17 - Info: <table> previously mentioned
line 158 column 9 - Warning: missing <tr>
line 176 column 13 - Warning: missing <tr>
line 179 column 84 - Warning: <style> isn't allowed in <td> elements
line 179 column 9 - Info: <td> previously mentioned
line 192 column 9 - Warning: <div> isn't allowed in <table> elements
line 152 column 17 - Info: <table> previously mentioned
line 194 column 9 - Warning: missing <tr>
line 212 column 13 - Warning: missing <tr>
line 218 column 9 - Warning: <div> isn't allowed in <table> elements
line 152 column 17 - Info: <table> previously mentioned
line 220 column 9 - Warning: missing <tr>
line 238 column 13 - Warning: missing <tr>
line 241 column 84 - Warning: <style> isn't allowed in <td> elements
line 241 column 9 - Info: <td> previously mentioned
line 249 column 9 - Warning: <div> isn't allowed in <table> elements
line 152 column 17 - Info: <table> previously mentioned
line 251 column 9 - Warning: missing <tr>
line 269 column 13 - Warning: missing <tr>
line 275 column 9 - Warning: <div> isn't allowed in <table> elements
line 152 column 17 - Info: <table> previously mentioned
line 277 column 9 - Warning: missing <tr>
line 295 column 13 - Warning: missing <tr>
line 298 column 73 - Warning: <style> isn't allowed in <td> elements
line 298 column 9 - Info: <td> previously mentioned
line 301 column 9 - Warning: <div> isn't allowed in <table> elements
line 152 column 17 - Info: <table> previously mentioned
line 303 column 9 - Warning: missing <tr>
line 321 column 13 - Warning: missing <tr>
line 324 column 73 - Warning: missing </div>
line 337 column 9 - Warning: <div> isn't allowed in <table> elements
line 152 column 17 - Info: <table> previously mentioned
line 339 column 9 - Warning: missing <tr>
line 357 column 13 - Warning: missing <tr>
line 360 column 84 - Warning: <style> isn't allowed in <td> elements
line 360 column 9 - Info: <td> previously mentioned
line 365 column 9 - Warning: <div> isn't allowed in <table> elements
line 152 column 17 - Info: <table> previously mentioned
line 367 column 9 - Warning: missing <tr>
line 385 column 13 - Warning: missing <tr>
line 393 column 9 - Warning: <div> isn't allowed in <table> elements
line 152 column 17 - Info: <table> previously mentioned
line 395 column 9 - Warning: missing <tr>
line 413 column 13 - Warning: missing <tr>
line 416 column 84 - Warning: <style> isn't allowed in <td> elements
line 416 column 9 - Info: <td> previously mentioned
line 444 column 17 - Warning: missing <tr>
line 444 column 17 - Warning: discarding unexpected <table>
line 447 column 35 - Warning: missing <tr>
line 447 column 50 - Warning: missing </font> before </td>
line 447 column 91 - Warning: missing </font> before </table>
line 449 column 35 - Warning: missing <tr>
line 449 column 50 - Warning: missing </font> before </td>
line 450 column 37 - Warning: unescaped & or unknown entity "&id"
line 449 column 182 - Warning: missing </font> before </table>
line 451 column 17 - Warning: discarding unexpected </textarea>
line 451 column 28 - Warning: discarding unexpected </form>
line 451 column 35 - Warning: discarding unexpected </embed>
line 451 column 43 - Warning: discarding unexpected </noembed>
line 451 column 53 - Warning: discarding unexpected </noscript>
line 451 column 64 - Warning: discarding unexpected </noembed>
line 451 column 74 - Warning: discarding unexpected </embed>
line 451 column 82 - Warning: discarding unexpected </table>
line 451 column 90 - Warning: discarding unexpected </table>
line 453 column 9 - Warning: missing </font> before <table>
line 465 column 25 - Warning: discarding unexpected </font>
line 474 column 37 - Warning: discarding unexpected </font>
line 452 column 1 - Warning: missing </center>
line 120 column 63 - Warning: <img> lacks "alt" attribute
line 125 column 19 - Warning: <td> attribute "width" has invalid value "120px"
line 125 column 93 - Warning: <img> lacks "alt" attribute
line 141 column 19 - Warning: <td> attribute "width" has invalid value "120px"
line 141 column 98 - Warning: <img> lacks "alt" attribute
line 148 column 44 - Warning: <img> proprietary attribute value "absmiddle"
line 148 column 142 - Warning: <img> proprietary attribute value "absmiddle"
line 148 column 216 - Warning: <img> proprietary attribute value "absmiddle"
line 161 column 23 - Warning: <img> lacks "alt" attribute
line 161 column 64 - Warning: <img> lacks "alt" attribute
line 161 column 113 - Warning: <img> lacks "alt" attribute
line 161 column 163 - Warning: <img> lacks "alt" attribute
line 172 column 15 - Warning: <img> lacks "alt" attribute
line 189 column 3047 - Warning: <img> lacks "alt" attribute
line 189 column 4425 - Warning: <img> proprietary attribute value "absmiddle"
line 189 column 4425 - Warning: <img> lacks "alt" attribute
line 197 column 22 - Warning: <img> lacks "alt" attribute
line 197 column 63 - Warning: <img> lacks "alt" attribute
line 197 column 112 - Warning: <img> lacks "alt" attribute
line 197 column 162 - Warning: <img> lacks "alt" attribute
line 208 column 15 - Warning: <img> lacks "alt" attribute
line 215 column 89 - Warning: <img> proprietary attribute value "absmiddle"
line 215 column 89 - Warning: <img> lacks "alt" attribute
line 223 column 23 - Warning: <img> lacks "alt" attribute
line 223 column 64 - Warning: <img> lacks "alt" attribute
line 223 column 113 - Warning: <img> lacks "alt" attribute
line 223 column 163 - Warning: <img> lacks "alt" attribute
line 234 column 15 - Warning: <img> lacks "alt" attribute
line 242 column 2706 - Warning: <img> proprietary attribute value "absmiddle"
line 242 column 2706 - Warning: <img> lacks "alt" attribute
line 244 column 3178 - Warning: <img> proprietary attribute value "absmiddle"
line 244 column 3178 - Warning: <img> lacks "alt" attribute
line 246 column 3401 - Warning: <img> proprietary attribute value "absmiddle"
line 246 column 3401 - Warning: <img> lacks "alt" attribute
line 246 column 4736 - Warning: <img> proprietary attribute value "absmiddle"
line 246 column 4736 - Warning: <img> lacks "alt" attribute
line 253 column 16 - Warning: <img> proprietary attribute value "absmiddle"
line 253 column 16 - Warning: <img> lacks "alt" attribute
line 253 column 59 - Warning: <img> proprietary attribute value "absmiddle"
line 253 column 59 - Warning: <img> lacks "alt" attribute
line 253 column 102 - Warning: <img> proprietary attribute value "absmiddle"
line 253 column 102 - Warning: <img> lacks "alt" attribute
line 253 column 145 - Warning: <img> proprietary attribute value "absmiddle"
line 253 column 145 - Warning: <img> lacks "alt" attribute
line 254 column 22 - Warning: <img> lacks "alt" attribute
line 254 column 63 - Warning: <img> lacks "alt" attribute
line 254 column 111 - Warning: <img> lacks "alt" attribute
line 254 column 161 - Warning: <img> lacks "alt" attribute
line 255 column 11 - Warning: <img> lacks "alt" attribute
line 265 column 15 - Warning: <img> lacks "alt" attribute
line 280 column 23 - Warning: <img> lacks "alt" attribute
line 280 column 64 - Warning: <img> lacks "alt" attribute
line 280 column 113 - Warning: <img> lacks "alt" attribute
line 280 column 163 - Warning: <img> lacks "alt" attribute
line 281 column 11 - Warning: <img> lacks "alt" attribute
line 291 column 15 - Warning: <img> lacks "alt" attribute
line 305 column 11 - Warning: <img> lacks "alt" attribute
line 306 column 22 - Warning: <img> lacks "alt" attribute
line 306 column 63 - Warning: <img> lacks "alt" attribute
line 306 column 112 - Warning: <img> lacks "alt" attribute
line 306 column 161 - Warning: <img> lacks "alt" attribute
line 307 column 11 - Warning: <img> lacks "alt" attribute
line 317 column 15 - Warning: <img> lacks "alt" attribute
line 333 column 1599 - Warning: <img> lacks "alt" attribute
line 334 column 1778 - Warning: <img> proprietary attribute value "absmiddle"
line 334 column 1778 - Warning: <img> lacks "alt" attribute
line 334 column 2206 - Warning: <img> proprietary attribute value "absmiddle"
line 334 column 2206 - Warning: <img> lacks "alt" attribute
line 342 column 23 - Warning: <img> lacks "alt" attribute
line 342 column 64 - Warning: <img> lacks "alt" attribute
line 342 column 113 - Warning: <img> lacks "alt" attribute
line 342 column 163 - Warning: <img> lacks "alt" attribute
line 353 column 15 - Warning: <img> lacks "alt" attribute
line 362 column 2805 - Warning: <img> proprietary attribute value "absmiddle"
line 362 column 2805 - Warning: <img> lacks "alt" attribute
line 362 column 4140 - Warning: <img> proprietary attribute value "absmiddle"
line 362 column 4140 - Warning: <img> lacks "alt" attribute
line 369 column 15 - Warning: <img> proprietary attribute value "absmiddle"
line 369 column 15 - Warning: <img> lacks "alt" attribute
line 369 column 58 - Warning: <img> proprietary attribute value "absmiddle"
line 369 column 58 - Warning: <img> lacks "alt" attribute
line 369 column 101 - Warning: <img> proprietary attribute value "absmiddle"
line 369 column 101 - Warning: <img> lacks "alt" attribute
line 369 column 144 - Warning: <img> proprietary attribute value "absmiddle"
line 369 column 144 - Warning: <img> lacks "alt" attribute
line 370 column 22 - Warning: <img> lacks "alt" attribute
line 370 column 63 - Warning: <img> lacks "alt" attribute
line 370 column 112 - Warning: <img> lacks "alt" attribute
line 370 column 161 - Warning: <img> lacks "alt" attribute
line 381 column 15 - Warning: <img> lacks "alt" attribute
line 390 column 271 - Warning: <img> lacks "alt" attribute
line 398 column 23 - Warning: <img> lacks "alt" attribute
line 398 column 64 - Warning: <img> lacks "alt" attribute
line 398 column 113 - Warning: <img> lacks "alt" attribute
line 398 column 163 - Warning: <img> lacks "alt" attribute
line 409 column 15 - Warning: <img> lacks "alt" attribute
line 426 column 3707 - Warning: <img> lacks "alt" attribute
line 428 column 3874 - Warning: <img> proprietary attribute value "absmiddle"
line 428 column 3874 - Warning: <img> lacks "alt" attribute
line 436 column 4221 - Warning: <img> proprietary attribute value "absmiddle"
line 436 column 4221 - Warning: <img> lacks "alt" attribute
line 438 column 4525 - Warning: <img> proprietary attribute value "absmiddle"
line 438 column 4525 - Warning: <img> lacks "alt" attribute
line 441 column 6792 - Warning: <img> proprietary attribute value "absmiddle"
line 441 column 6792 - Warning: <img> lacks "alt" attribute
line 450 column 44 - Warning: <img> proprietary attribute value "absmiddle"
line 450 column 142 - Warning: <img> proprietary attribute value "absmiddle"
line 450 column 216 - Warning: <img> proprietary attribute value "absmiddle"
line 459 column 25 - Warning: <img> lacks "alt" attribute
line 464 column 267 - Warning: <img> lacks "alt" attribute
line 149 column 50 - Warning: trimming empty <font>
line 444 column 17 - Warning: trimming empty <tr>
line 447 column 50 - Warning: trimming empty <font>
line 125 column 68 - Warning: <nobr> is not approved by W3C
line 141 column 68 - Warning: <nobr> is not approved by W3C
line 177 column 27 - Warning: <nobr> is not approved by W3C
line 213 column 27 - Warning: <nobr> is not approved by W3C
line 239 column 27 - Warning: <nobr> is not approved by W3C
line 270 column 27 - Warning: <nobr> is not approved by W3C
line 296 column 27 - Warning: <nobr> is not approved by W3C
line 322 column 27 - Warning: <nobr> is not approved by W3C
line 358 column 27 - Warning: <nobr> is not approved by W3C
line 386 column 27 - Warning: <nobr> is not approved by W3C
line 414 column 27 - Warning: <nobr> is not approved by W3C
Info: Document content looks like HTML5
Info: No system identifier in emitted doctype
Tidy found 193 warnings and 0 errors!


The alt attribute should be used to give a short description
of an image; longer descriptions should be given with the
longdesc attribute which takes a URL linked to the description.
These measures are needed for people using non-graphical browsers.

For further advice on how to make your pages accessible
see http://www.w3.org/WAI/GL.
You are recommended to use CSS to specify the font and
properties such as its size and color. This will reduce
the size of HTML files and make them easier to maintain
compared with using <FONT> elements.

You are recommended to use CSS to control line wrapping.
Use "white-space: nowrap" to inhibit wrapping in place
of inserting <NOBR>...</NOBR> into the markup.

About HTML Tidy: https://github.com/htacg/tidy-html5
Bug reports and comments: https://github.com/htacg/tidy-html5/issues
Official mailing list: https://lists.w3.org/Archives/Public/public-htacg/
Latest HTML specification: http://dev.w3.org/html5/spec-author-view/
Validate your HTML documents: http://validator.w3.org/nu/
Lobby your company to join the W3C: http://www.w3.org/Consortium

Do you speak a language other than English, or a different variant of
English? Consider helping us to localize HTML Tidy. For details please see
https://github.com/htacg/tidy-html5/blob/master/README/LOCALIZE.md