Spark's unable to flash after running program

Hi,
I’ve been testing and running the program you can find here:
http://community.spark.io/t/using-one-core-as-a-tcp-server-and-another-as-a-client/8080

And after I run the program on the clientside I have to power off and power on before flashing different code onto the core or it refuses to flash. Not sure if this is my fault or a hardware issue, not the biggest problem just a bit of a pain.
Thanks.

I’ve been looking at your code and while I don’t exactly know why it isn’t working I think I know how to folder this issue:

Replace:

for(;;);

with

for(;;) {
    Spark.process();
}

What I think is happening is that the for(;;); is continually looping. The function needed to maintain the cloud connection and receive new code is never called.

Let me know if the above doesn’t fix the problem

Yep! got it! thanks alot.