(Link to AcmlmWiki) Offline: thank ||bass
Register | Login
Views: 13,040,846
Main | Memberlist | Active users | Calendar | Chat | Online users
Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album
04-23-23 07:54 PM
Acmlm's Board - I3 Archive - - Posts by HyperHacker
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253
User Post
(restricted)
HyperHacker

Star Mario
Finally being paid to code in VB! If only I still enjoyed that. <_<
Wii #7182 6487 4198 1828


 





Since: 11-18-05
From: Canada, w00t!
My computer's specs, if anyone gives a damn.
STOP TRUNCATING THIS >8^(

Last post: 5908 days
Last view: 5908 days
Posted on 12-12-05 01:41 AM, in Realloc() fails for some reason Link
One of those fun bugs that makes no sense whatsoever.

NumTags++;
printf("realloc: %d x %d = %d\n",sizeof(XMLTag), NumTags, sizeof(XMLTag) * NumTags);
Tag = (XMLTag*)realloc((void*)Tag,sizeof(XMLTag) * NumTags);
if(!Tag)
{
SetError("Out of memory");
return false;
}


You can probably see that what this is supposed to do is allocate enough memory to hold NumTags XMLTag structures. However, for some reason it's failing:

Init
Parse
Alloc succeeded
1, 3: Tag '' (#0)
realloc: 52 x 1 = 52
End of tag ''
2, 8: Tag 'scene' (#1)
realloc: 52 x 2 = 104
End of tag 'scene'
3, 12: Tag 'textures' (#2)
realloc: 52 x 3 = 156
Parse error: Line 3, Col 12: Out of memory


It's only trying to allocate 156 bytes, but it fails. However, I added this above:
BYTE* blah = NULL;
for(int i=1;i<2048;i += 10)
{
blah = (BYTE*)realloc((void*)blah,i * sizeof(BYTE));
if(!blah)
{
printf("Failed at %d\n",i);
break;
}
}
if(blah) printf("Alloc succeeded\n");
free(blah);


This works just fine, so obviously there's at least 2K available.
(restricted)
(restricted)
HyperHacker

Star Mario
Finally being paid to code in VB! If only I still enjoyed that. <_<
Wii #7182 6487 4198 1828


 





Since: 11-18-05
From: Canada, w00t!
My computer's specs, if anyone gives a damn.
STOP TRUNCATING THIS >8^(

Last post: 5908 days
Last view: 5908 days
Posted on 12-12-05 02:45 AM, in Star randomly appearing? Link

dafuck
HyperHacker

Star Mario
Finally being paid to code in VB! If only I still enjoyed that. <_<
Wii #7182 6487 4198 1828


 





Since: 11-18-05
From: Canada, w00t!
My computer's specs, if anyone gives a damn.
STOP TRUNCATING THIS >8^(

Last post: 5908 days
Last view: 5908 days
Posted on 12-12-05 05:16 PM, in Realloc() fails for some reason Link
It's XP, which has never given me any memory problems before (except with video memory ). I think you're probably right about using XMLTag* there, now that I look at it again. *tinkers a bit*

Yeah, I think it's writing outside of the array. Tsk tsk.

BTW, you can pass realloc() a NULL pointer; it'll just act like malloc().

[edit] Yep. A completely different part of the code was writing wrong (Tag[T].Attrib[i] should have been Tag[T].Attrib[i].Name). Fixing it was surprisingly simple: I just went through each call to realloc(), one at a time, and changed it to grab an extra 256 bytes. Once I changed the one that was being written wrong, the extra bytes made up for the bug and thus things ran better (it still crashed, but ran a lot longer). That's how I knew which array was being written wrong, and from there it was a snap to figure out where.

So yeah, yay me or something.


(edited by HyperHacker on 12-12-05 11:15 PM)
(edited by HyperHacker on 12-12-05 11:16 PM)
HyperHacker

Star Mario
Finally being paid to code in VB! If only I still enjoyed that. <_<
Wii #7182 6487 4198 1828


 





Since: 11-18-05
From: Canada, w00t!
My computer's specs, if anyone gives a damn.
STOP TRUNCATING THIS >8^(

Last post: 5908 days
Last view: 5908 days
Posted on 12-12-05 09:44 PM, in Star randomly appearing? Link
*adblocks the star for the duration of the thread*

If scripts worked in posts, you could do this:
<script>
for(i=0;i<document.images.length;i++)
document.images[i].src = "http://board.acmlm.org/images/twinklestarr.png";
</script>


(edited by HyperHacker on 12-12-05 08:44 PM)
HyperHacker

Star Mario
Finally being paid to code in VB! If only I still enjoyed that. <_<
Wii #7182 6487 4198 1828


 





Since: 11-18-05
From: Canada, w00t!
My computer's specs, if anyone gives a damn.
STOP TRUNCATING THIS >8^(

Last post: 5908 days
Last view: 5908 days
Posted on 12-12-05 09:46 PM, in im Link
Gaim rocks, plain and simple.
HyperHacker

Star Mario
Finally being paid to code in VB! If only I still enjoyed that. <_<
Wii #7182 6487 4198 1828


 





Since: 11-18-05
From: Canada, w00t!
My computer's specs, if anyone gives a damn.
STOP TRUNCATING THIS >8^(

Last post: 5908 days
Last view: 5908 days
Posted on 12-12-05 09:51 PM, in The google ads. Link
At first I didn't mind, because hey, they're just plain text ads that blend into the page well; I barely even notice them. In fact I took the effort to fix up some ad-blocking scripts in Proxomitron so that they would show up, because blocked ads don't make any money.

But then I saw this...

Ka-block. I thought Google was above that.

Also, when I open a thread which I've read before I often hit End and scroll up to the first post I haven't read, so being at the bottom does little good.
HyperHacker

Star Mario
Finally being paid to code in VB! If only I still enjoyed that. <_<
Wii #7182 6487 4198 1828


 





Since: 11-18-05
From: Canada, w00t!
My computer's specs, if anyone gives a damn.
STOP TRUNCATING THIS >8^(

Last post: 5908 days
Last view: 5908 days
Posted on 12-12-05 09:53 PM, in Star randomly appearing? Link
Yes, and I was providing an example of why.
(restricted)
(restricted)
(restricted)
HyperHacker

Star Mario
Finally being paid to code in VB! If only I still enjoyed that. <_<
Wii #7182 6487 4198 1828


 





Since: 11-18-05
From: Canada, w00t!
My computer's specs, if anyone gives a damn.
STOP TRUNCATING THIS >8^(

Last post: 5908 days
Last view: 5908 days
Posted on 12-14-05 05:36 PM, in Average IQ level under logo? Link
Seems random to me. It'll be 90 on one page, then 94 on the next. In fact, I just refreshed index.php 8 times really fast and it jumped around quite a bit.
HyperHacker

Star Mario
Finally being paid to code in VB! If only I still enjoyed that. <_<
Wii #7182 6487 4198 1828


 





Since: 11-18-05
From: Canada, w00t!
My computer's specs, if anyone gives a damn.
STOP TRUNCATING THIS >8^(

Last post: 5908 days
Last view: 5908 days
Posted on 12-14-05 09:29 PM, in Star randomly appearing? Link
You're welcome.
HyperHacker

Star Mario
Finally being paid to code in VB! If only I still enjoyed that. <_<
Wii #7182 6487 4198 1828


 





Since: 11-18-05
From: Canada, w00t!
My computer's specs, if anyone gives a damn.
STOP TRUNCATING THIS >8^(

Last post: 5908 days
Last view: 5908 days
Posted on 12-14-05 09:41 PM, in Something cool: A Mr. Saturnizer Link







HyperHacker

Star Mario
Finally being paid to code in VB! If only I still enjoyed that. <_<
Wii #7182 6487 4198 1828


 





Since: 11-18-05
From: Canada, w00t!
My computer's specs, if anyone gives a damn.
STOP TRUNCATING THIS >8^(

Last post: 5908 days
Last view: 5908 days
Posted on 12-14-05 09:42 PM, in Pants Link
Pants? Keh. I sit around in my boxers whenever possible.
HyperHacker

Star Mario
Finally being paid to code in VB! If only I still enjoyed that. <_<
Wii #7182 6487 4198 1828


 





Since: 11-18-05
From: Canada, w00t!
My computer's specs, if anyone gives a damn.
STOP TRUNCATING THIS >8^(

Last post: 5908 days
Last view: 5908 days
Posted on 12-14-05 09:45 PM, in Average IQ level under logo? Link
Cirvante, your post is missing.

Also, online IQ tests are generally BS, especially when they have ads that try to trick you.
HyperHacker

Star Mario
Finally being paid to code in VB! If only I still enjoyed that. <_<
Wii #7182 6487 4198 1828


 





Since: 11-18-05
From: Canada, w00t!
My computer's specs, if anyone gives a damn.
STOP TRUNCATING THIS >8^(

Last post: 5908 days
Last view: 5908 days
Posted on 12-14-05 09:48 PM, in Selective short attention span? Link
Actually, I find... ooh! Plastic bag!

But seriously. I tend to have a fairly good attention span, but every now and then when I'm doing something boring my mind just wanders and I just sit there thinking about random stuff. Generally, like Xenesis said, I can pay nearly perfect attention if it's interesting enough. Sometimes when I'm programming or some such I actually tune out everything else to the extent that I decide to put some music on, then realize it's already on.
HyperHacker

Star Mario
Finally being paid to code in VB! If only I still enjoyed that. <_<
Wii #7182 6487 4198 1828


 





Since: 11-18-05
From: Canada, w00t!
My computer's specs, if anyone gives a damn.
STOP TRUNCATING THIS >8^(

Last post: 5908 days
Last view: 5908 days
Posted on 12-14-05 09:51 PM, in im Link
Originally posted by Zem
Originally posted by HyperHacker
Gaim rocks, plain and simple.

It's ugly and I can't do direct connect and the corner notifications are buggy and also ugly. I use Trillian just because it works best out of all the ones I've tried; I still don't like it much.

Funny, those are some of the biggest reasons I scrapped Trillian. It was ugly and each new version brought about 216 annoying bugs.

Plus, free software doesn't come with 58-page license agreements.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253
Acmlm's Board - I3 Archive - - Posts by HyperHacker


ABII

Acmlmboard 1.92.999, 9/17/2006
©2000-2006 Acmlm, Emuz, Blades, Xkeeper

Page rendered in 0.036 seconds; used 437.13 kB (max 562.11 kB)