|
Every game tutorial and game framework (even the rather new XNA framework) start off with a never ending loop that has an equivalent of DoEvents() to prevent the OS from locking up.
Comming from a non-game based perspective I feel this kind of code smells...
Started by boris callens on
, 9 posts
by 9 people.
Answer Snippets (Read the full thread at stackoverflow):
Same with ....
If there's nothing to be done, you with the loop (like in web programming or other minor programs)
Your OS is a loop waiting for input commands.
Is an endless loop with blocking call to dispatch events/messages.
|
|
I'm displaying a set of images as an overlay using googlemaps. Displaying these images should be in an endless-loop. Most most browsers detect this, and display a warning. Is there a way to make a endless-loop in javascript that is'nt stopped by the browser...
Started by Bas Hendriks on
, 10 posts
by 10 people.
Answer Snippets (Read the full thread at stackoverflow):
An endless loop? You are displaying an infinite number of images?
Try setInterval or setTimeout a code sample
You should use a timer to continuously bring new images instead of an infinite loop"> </form> </body> &....
|
|
Today I fixed a bug in an application that might have lead to an endless loop in a servlet request/response cycle.
So just out of curiousity: What happens, if my servlet actually gets trapped in a for(;;) loop?
Is it somehow possible to recover? Will ...
Started by Mo on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
It its a "true" endless loop, you be easily....
If the endless loop is caused by an endless redirect, it will sooner or later terminate that request with StackOverflowException.
Your loops have exit conditions...
|
Ask your Facebook Friends
|
I'm writing a Firefox extension. The extension replaces certain words on the page with other words. Here's the basic code I'm using:
function startup() { gBrowser.addEventListener("load", pageLoad, true); } function pageLoad(event) { if (event.originalTarget...
Started by Scott on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Var loaded....
You could use the following code to check if it has already been run before .
Would having a div or span tag immediately inside of your body tag be an option? Then you could just update the innerHTML of that element, and not the entire body.. .
|
|
For some sick reason, my check productIDs[addIndex] = allProductIDs[lastProductFoundIndex + i]; causes my app to spin into an infinite loop:
numberOfImagesToDisplay is set to 4
if (state == "next") { for(var a = 0; a < numberOfImagesToDisplay; a++)...
Answer Snippets (Read the full thread at stackoverflow):
For (var i = 0; i < numberOfImagesToDisplay; i++)
Note: You should have="+numberOfImagesToDisplay) display ... .
What if you add the var keyword to your for loop? That would turn trash your loop index.
Major longshot, I know.
Modifies i.
|
|
I have a problem with a function I have written in php. As you can see the function uses itself to return an array of the values.
public function getRepeat($day = "array") { if ($day == 'array') {//Return an array with the repeated days as values foreach...
Started by nibbo on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
So you need to change.
Not start with a number'
Your last digit 0 will cause an endless loop.
|
|
I put my laptop to sleep last night, and when I woke up this morning... it didn't. So I tried to reboot, and everything went fine until it got to the Vista splash screen, where it's supposed to display the logon. Here, it hits an endless loop:
Display...
Started by Mason Wheeler on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at superuser):
I have seen this a few times relating to a faulty driver - however I am very confused as... .
Look for errors and update your post accordingly.
Since you can boot into safe mode, you'll have access to the Event Viewer , that's always a good place to start .
|
|
I’ve built an HttpHandler (ASHX) that sits in my web project. I have a test page that invokes the Handler and the Handler returns what it is supposed to. However, as soon as the return is done it gets invoked again. And again, and again, and again, ad...
Started by Keith Barrows on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Lt;iframe class="welcome" src="http://localhost/barrows.riv?client=33ee472yaaM24a"></iframe>
Does the source have the handler enabled? And if it does, does it link another page which has it enabled? Could be you're recursively linking your pages... .
|
|
So I have some C++ code for back-tracking nodes in a BFS algorithm. It looks a little like this:
typedef std::map<int> MapType; bool IsValuePresent(const MapType& myMap, int beginVal, int searchVal) { int current_val = beginVal; while (true) { if...
Started by rlbond on
, 14 posts
by 14 people.
Answer Snippets (Read the full thread at stackoverflow):
This is not bad form if it helps to simplify the logic, and so if you find yourself wanting an endless loop, you might want to step back and reconsider to see what while loop would....
Stop worrying.
An endless loop ;) ..
|
|
Please read this carefully in its entirety and think about it before replying. It might be a simple fix but I highly doubt it. You have to understand the scenario here and conflicts I'm explaining fully to be able to help me.
So I have copied over our...
Answer Snippets (Read the full thread at stackoverflow):
Add Existing Item for one of....
Get a successful build with just the Master Add Existing Item for your webcontrols .
Solve any reference problems there.
Copy your Master page into that.
Create a new test project.
Perhaps consider this to help troubleshoot.
|