Register | Login | |||||
Main
| Memberlist
| Active users
| ACS
| Commons
| Calendar
| Online users Ranks | FAQ | Color Chart | Photo album | IRC Chat |
| |
Acmlm's Board - I2 Archive - - Posts by beneficii |
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 |
User | Post | ||
beneficii Lakitu Level: 36 Posts: 421/567 EXP: 299656 For next: 8454 Since: 06-27-04 From: Cordova, TN, USA Since last post: 14 hours Last activity: 6 hours |
| ||
LOL, "I'm so lazy I once took lessons on a player piano!" |
|||
beneficii Lakitu Level: 36 Posts: 422/567 EXP: 299656 For next: 8454 Since: 06-27-04 From: Cordova, TN, USA Since last post: 14 hours Last activity: 6 hours |
| ||
Originally posted by 123ANDREW456 What did you do? |
|||
beneficii Lakitu Level: 36 Posts: 423/567 EXP: 299656 For next: 8454 Since: 06-27-04 From: Cordova, TN, USA Since last post: 14 hours Last activity: 6 hours |
| ||
Originally posted by sloat I was thinking that the breakpoint was not being reached also, so I put it in the first line of the WM_CREATE of my main window (which did load), but the program still did not break execution. I'm not entirely sure how Bloodshed does it. I read through the help file. (I think the Help file has bad formatting, too). Here is text from it: Launching your program into the debugger is easy. Just go to the Debug menu and click on Debug (shortcut : F8). I'm not entirely sure what debugger information is, but I did set a breakpoint in the code and click Debug. It asked me if I wanted to compile with information and I said yes. It compiled, I then simply ran it. The breakpoint was set on the first line of the code in the body of case WM_CREATE in the WndProc's switch(msg) statement. The windows loads fine, but the program does not break. Perhaps there is somebody familiar with Bloodshed here? (edited by beneficii on 08-22-05 12:49 PM) |
|||
beneficii Lakitu Level: 36 Posts: 424/567 EXP: 299656 For next: 8454 Since: 06-27-04 From: Cordova, TN, USA Since last post: 14 hours Last activity: 6 hours |
| ||
Originally posted by Kawa-oneechan Hmm, commenting it out until it breaks actually seems to be a good idea. Thanks Kawa! |
|||
beneficii Lakitu Level: 36 Posts: 425/567 EXP: 299656 For next: 8454 Since: 06-27-04 From: Cordova, TN, USA Since last post: 14 hours Last activity: 6 hours |
| ||
Originally posted by Smallhacker i goto barfnad rnew graphcis fior zelda 63 howw to i chaegne them to gaem/? LOL, this thread's so going down. When a moderator hijacks a thread, you know it's gone down the crapper. |
|||
beneficii Lakitu Level: 36 Posts: 426/567 EXP: 299656 For next: 8454 Since: 06-27-04 From: Cordova, TN, USA Since last post: 14 hours Last activity: 6 hours |
| ||
For me, I think that using break or goto to test your program would be easier then commenting out a bunch of your code. I actually did the goto statement (I know I know the goto statement is evil; I only am using it for testing) in a function and the problem that turned out was a flag that got set that caused another function later on to get messed up (I have a couple ideas to what it is). I thought the problem was a lot more complicated, but I'm starting to get a little confident again. When I get home from work tonight, I'm going to set to it. |
|||
beneficii Lakitu Level: 36 Posts: 427/567 EXP: 299656 For next: 8454 Since: 06-27-04 From: Cordova, TN, USA Since last post: 14 hours Last activity: 6 hours |
| ||
Tennessee: All Tennesseans are rednecks or hillbillies: Pretty untrue. I know very few and there are actually many intellectuals here. Tennessee is a backward state with little relevance to the national and global economies: Very untrue. FedEx is based in Memphis and Memphis Int'l Airport has more cargo go through it than any other airport in the world (including airports like Hong Kong, Tokyo, London, Dusseldorf, New York, Los Angeles, etc.). Tennessee is also a major central area. Tennessee has little relevance to national politics: Untrue. Bill Frist, one of our senators, is the majority leader in the Senate. Lamar Alexander, our other senator, was an actor. Harold Ford, Jr., a U.S. Representative from a Memphis district, also made a attempt recently to become the House minority leader. Tennessee is a red state: Untrue. We were red in the presidential election 2004, but our governor is Democrat and our legislature is controlled by the Democrats. Also: Memphis has more hospitals in it than any other city in the world. Albert Gore, Sr., (the former veep's father) rose to power in defiance of E.H. Crump, a former political boss in Memphis. |
|||
beneficii Lakitu Level: 36 Posts: 428/567 EXP: 299656 For next: 8454 Since: 06-27-04 From: Cordova, TN, USA Since last post: 14 hours Last activity: 6 hours |
| ||
OMG OMG OMG I just found out what was wrong with my program! The problem was in a careless variable initialization in a class method that caused it to sometimes try to read from a NULL pointer as though it were an arrary. It's so embarrassing. I am getting tired for playing these search around games, but thankfully they're getting less and less. |
|||
beneficii Lakitu Level: 36 Posts: 429/567 EXP: 299656 For next: 8454 Since: 06-27-04 From: Cordova, TN, USA Since last post: 14 hours Last activity: 6 hours |
| ||
In response to the first post, I do not believe in wearing a long-sleeved shirt and shorts. | |||
beneficii Lakitu Level: 36 Posts: 430/567 EXP: 299656 For next: 8454 Since: 06-27-04 From: Cordova, TN, USA Since last post: 14 hours Last activity: 6 hours |
| ||
I have an issue when the user holds down a key for too long. When pipes are loaded in my SMB3 Map Editor, you can switch between various pipe sets with the page up and page down keys (which are read through the WM_KEYDOWN message). When you press one of them, it unloads the old pipe set and loads the new one and draws it to the screen. Unfortunately, if the user tries to go through the pipe sets by holding page up/down, then the program will freeze. My guess is that the window is receiving the keyboard input that is too fast for it to handle, and so it locks up. Is there a way of slowing down this input for the window when the user holds it down (without making the user go to the control panel to slow it down and without changing it for the whole system) or is there some other way around this? Thanks. UPDATE: I tried putting them under WM_KEYUP, but doing it too fast still causes it to freeze up. (edited by beneficii on 08-27-05 01:30 PM) (edited by beneficii on 08-27-05 01:35 PM) |
|||
beneficii Lakitu Level: 36 Posts: 431/567 EXP: 299656 For next: 8454 Since: 06-27-04 From: Cordova, TN, USA Since last post: 14 hours Last activity: 6 hours |
| ||
Originally posted by Disch This seems like quite a thing to implement. Is there any simpler way? |
|||
beneficii Lakitu Level: 36 Posts: 432/567 EXP: 299656 For next: 8454 Since: 06-27-04 From: Cordova, TN, USA Since last post: 14 hours Last activity: 6 hours |
| ||
OK, implementing. (edited by beneficii on 08-27-05 11:13 PM) |
|||
beneficii Lakitu Level: 36 Posts: 433/567 EXP: 299656 For next: 8454 Since: 06-27-04 From: Cordova, TN, USA Since last post: 14 hours Last activity: 6 hours |
| ||
I'm surprised that no-one has had anything to say on Hurricane Katrina at all on this board. Right now, New Orleans is marked in the bullseye for this strong Category 4 hurricane. There is a nightmare worst-case scenario out, because of New Orleans being below sea level. If a very powerful hurricane hits New Orleans head-on or just to the west, the city could be turned into a poisonous lake, with dangerous creatures stuck floating in the water (such as fire ants that clump into balls in-water unclumping onto and stinging anything they touch--including humans) and poison being present because it would leak from the factories, cars, etc. in the city. Here is the National Hurricane Service page on Hurricane Katrina: http://www.nhc.noaa.gov/refresh/graphics_at2+shtml/060711.shtml?5day With 90 degree SST's and precious little shear ahead of it, Katrina could be a monstrous Category 5 when it makes landfall. It's sustained winds right now at 145 mph (about 232 kph). (edited by beneficii on 08-28-05 02:35 AM) (edited by beneficii on 08-28-05 02:35 AM) (edited by beneficii on 08-28-05 02:40 AM) |
|||
beneficii Lakitu Level: 36 Posts: 434/567 EXP: 299656 For next: 8454 Since: 06-27-04 From: Cordova, TN, USA Since last post: 14 hours Last activity: 6 hours |
| ||
Originally posted by Snika The threat is real and serious: http://americanradioworks.publicradio.org/features/wetlands/hurricane1.html "Basically, the part of New Orleans that most Americans--most people around the world--think is New Orleans, would disappear." Here's another article: http://www.bestofneworleans.com/dispatch/2002-10-15/commentary.html And another: http://www.findarticles.com/p/articles/mi_m0BJK/is_15_11/ai_68642805 And from Louisiana State University: http://hurricane.lsu.edu/_in_the_news/april21_advocate.htm (edited by beneficii on 08-28-05 02:44 AM) (edited by beneficii on 08-28-05 02:45 AM) (edited by beneficii on 08-28-05 02:45 AM) (edited by beneficii on 08-28-05 02:47 AM) (edited by beneficii on 08-28-05 02:48 AM) |
|||
beneficii Lakitu Level: 36 Posts: 435/567 EXP: 299656 For next: 8454 Since: 06-27-04 From: Cordova, TN, USA Since last post: 14 hours Last activity: 6 hours |
| ||
Originally posted by Snika It would be underwater, yes, and no, not really, none of the other states would go underwater. Of course they'd affected by the high winds and heavy rains of the storm. |
|||
beneficii Lakitu Level: 36 Posts: 436/567 EXP: 299656 For next: 8454 Since: 06-27-04 From: Cordova, TN, USA Since last post: 14 hours Last activity: 6 hours |
| ||
Originally posted by Snika Not really, except try to evacuate. We can't control the weather yet (and whether that would be desirable is another matter). Unfortunately, people have been too lax in evacuating thus far; now it's sorta too late to evacuate the whole city. One could only hope that Katrina wobbles to the east on her way there (or somehow weaken--though except for eyewall replacement cycles, which don't last long enough and never permanently cripple the storms and actually can help to strengthen them after they're done, this doesn't seem very likely at all), because if she makes landfall east of New Orleans, the city would not be affected nearly as much by storm surge. http://en.wikipedia.org/wiki/Eyewall_replacement_cycle (edited by beneficii on 08-28-05 02:54 AM) (edited by beneficii on 08-28-05 02:55 AM) (edited by beneficii on 08-28-05 02:55 AM) |
|||
beneficii Lakitu Level: 36 Posts: 437/567 EXP: 299656 For next: 8454 Since: 06-27-04 From: Cordova, TN, USA Since last post: 14 hours Last activity: 6 hours |
| ||
Originally posted by Snika Well, he's already declared a state of emergency for the state: http://www.miami.com/mld/miamiherald/news/12494800.htm |
|||
beneficii Lakitu Level: 36 Posts: 438/567 EXP: 299656 For next: 8454 Since: 06-27-04 From: Cordova, TN, USA Since last post: 14 hours Last activity: 6 hours |
| ||
Originally posted by Snika Well, I'm just not sure what the difference would be if he declared it now or declared after the storm hit, except to prepeare the rescuers. Some estimates of the death toll I've seen run into the thousands.... (edited by beneficii on 08-28-05 03:06 AM) |
|||
beneficii Lakitu Level: 36 Posts: 439/567 EXP: 299656 For next: 8454 Since: 06-27-04 From: Cordova, TN, USA Since last post: 14 hours Last activity: 6 hours |
| ||
Originally posted by Bella It is quite unbelievable, isn't it? Nevertheless, there is scientific justification for it being likely. First, the swamps that normally would protect New Orleans from storm surges are being largely cleared away, making New Orleans more vulnerable. New Orleans is below sea level surrounded by three bodies of water: Lake Pontchartrain, the Mississippi River, and the Gulf of Mexico. Now, from what I understand, there are concerete walls place on these bodies of water to protect them from overflowing. Nevertheless, a poweful hurricane could put this arrangement under stress; if it hits New Orleans head-on or just to the west, then the onshore winds could cause storm surges of greater than 10 feet to spill over those walls. The strong winds could also cause damage to the walls allowing water to come pouring out undaunted and into the city. Heavy rains (and Katrina is moving somewhat slowly) could also cause the water to overflow. New Orleans could end up being underneath more than 20 feet of water, which I would define as being sunk. Please read the articles I posted for a better description of the possible situation. Of course, there are factors the scientists may be missing, and hopefully Katrina veers to the east where there wouldn't be onshore winds but offshore ones (reducing the storm surges to virtually 0). I personally hope that either or both of these factors are true, because that would save thousands of lives. EDIT: Here's an article on storm surge: http://en.wikipedia.org/wiki/Storm_surge EDIT 2: Here's a link to a map describing what could happen in New Orleans: http://www5.wright-weather.com/bb/attachment.php?s=&postid=452136 Since it's a big picture, I linked to it instead of displaying it here. (edited by beneficii on 08-28-05 04:30 AM) (edited by beneficii on 08-28-05 04:33 AM) (edited by beneficii on 08-28-05 04:44 AM) (edited by beneficii on 08-28-05 05:08 AM) |
|||
beneficii Lakitu Level: 36 Posts: 440/567 EXP: 299656 For next: 8454 Since: 06-27-04 From: Cordova, TN, USA Since last post: 14 hours Last activity: 6 hours |
| ||
Originally posted by HyperHacker My solution would be to store the file size in memory (like an int variable), load the file into memory, starting at the byte after the byte you're trying to delete shift every byte one byte left, decrement the file size, and then save the file. EDIT: Here's some code that probably does what you are describing. It's untested, but I think that it probably works: #include < #include < #include < #include < int deletebyte(const char *filename, int address) { int size, handle, *data; FILE *nfo; handle = open(filename, O_RDONLY); /* getting file size */ size = filelength(handle); close(handle); data = malloc(sizeof(int) * size); /* creating data space in memory to store file*/ nfo = fopen(filename, "rb"); /* loading the file */ for(int i = 0; i < size; i++) data[i fclose(nfo); for(int i = address + 1; i < size; i++) /* starting at the byte following the specified address */ data[i - 1 size--; /* decrementing the size */ nfo = fopen(filename, "wb"); /* reopening the file to write to it */ for(int i = 0; i < size; i++) /* writing to it */ fputc(data[i fclose(nfo); /* now that we did it, it's time to return our value and free our dynamically allocated array */ free(data); return size; /* returning our new file size */ } /* if you want to use this function call it: the first parameter is the file name and the second parameter is the address that you want to delete; the function returns an int, the new filesize of the file. */ (edited by beneficii on 08-28-05 06:18 AM) (edited by beneficii on 08-28-05 06:19 AM) (edited by beneficii on 08-28-05 06:20 AM) (edited by beneficii on 08-28-05 06:21 AM) (edited by beneficii on 08-28-05 06:44 AM) |
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 |
Acmlm's Board - I2 Archive - - Posts by beneficii |