Jump to content




program freezing no error message


  • You cannot reply to this topic
3 replies to this topic

#1 TR1T0N_

  • Members
  • 46 posts

Posted 27 December 2013 - 01:14 PM

Hello, im currently creating a banking system and i have a problem that is when i setup the programs on the systems and run the file it works the first time around but on the second time round it just freezes and the last function it executes is on line 25 on the atm and then does nothing. the pcs are put in a formation like this
pc | id
mainserver = 4
firewall = 5
atm = 9

mainserver -> wired modem -> firewall -> wireless modem -> atm

the programs are still in development and dont have guis and they are not very efficient and the transfering function is not in the program yet here are the programs

atm software
Spoiler

mainserver
Spoiler

firewall
Spoiler
any help provided would be much appreciated and sorry for my horrible formatting

Edited by TR1T0N_, 27 December 2013 - 02:11 PM.


#2 RoD

  • Members
  • 313 posts

Posted 03 April 2014 - 09:06 PM

as i can see the line 25 is when you try to send a message to the computer #5 . Maybe the computer #5 isnt running a rednet receiver.

#3 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 03 April 2014 - 09:37 PM

Odds are it's getting stuck on line 30:

var1, var2, var3 = rednet.receive()

If no message is received, it'll wait here indefinitely.

#4 guesswhat123212

  • Members
  • 31 posts

Posted 05 April 2014 - 03:06 AM

View PostBomb Bloke, on 03 April 2014 - 09:37 PM, said:

Odds are it's getting stuck on line 30:

var1, var2, var3 = rednet.receive()

If no message is received, it'll wait here indefinitely.

change rednet.receive() to rednet.receive(3) and it will timeout after 3 seconds, that might help you out.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users