ATTENTION

This FlexSim Community Forum is read-only. Please post any new questions, ideas, or discussions to our new community (we call it Answers) at https://answers.flexsim.com/. Our new Question & Answer site brings a modern, mobile-friendly interface and more focus on getting answers quickly. There are a few differences between how our new Q&A community works vs. a classic, threaded-conversation-style forum like the one below, so be sure to read our Answers Best Practices.


flexsim.com

Go Back   FlexSim Community Forum > FlexSim Software > Flexsim Student Forum
Downloads

Flexsim Student Forum Forum for discussion for Flexsim Students using the Flexsim Textbook.

  #1  
Old 07-05-2013
mearjun mearjun is offline
Flexsim User
 
Join Date: Feb 2012
Posts: 123
Downloads: 5
Uploads: 0
Thanks: 27
Thanked 19 Times in 11 Posts
Rep Power: 119
mearjun will become famous soon enough
Default Flexsim engine crashes

Hello

Its a very peculiar problem but I recently made some changes to the code of a perfectly fine model. Now every time I run the model, Flexsim engine crashes. It shouldn't happen as I have changed nothing major and ideally even if their is an error in the code, flexsim shouldn't crash. Does anyone have a clue as to why is this happening. I can attach both the models if you want to look into them
  #2  
Old 07-08-2013
mearjun mearjun is offline
Flexsim User
 
Join Date: Feb 2012
Posts: 123
Downloads: 5
Uploads: 0
Thanks: 27
Thanked 19 Times in 11 Posts
Rep Power: 119
mearjun will become famous soon enough
Default Issue resolved

In case anyone wants to know what happened, I had written a bad code and an infinite loop was being formed due to that. So if it happens to you do check your code thoroughly.
The Following 2 Users Say Thank You to mearjun For This Useful Post:
Sebastian Hemmann (07-09-2013)
  #3  
Old 07-09-2013
Anthony Johnson's Avatar
Anthony Johnson Anthony Johnson is offline
Manager of Product Development
 
Join Date: Jul 2007
Posts: 440
Downloads: 86
Uploads: 4
Thanks: 171
Thanked 899 Times in 288 Posts
Rep Power: 735
Anthony Johnson has a reputation beyond reputeAnthony Johnson has a reputation beyond reputeAnthony Johnson has a reputation beyond reputeAnthony Johnson has a reputation beyond reputeAnthony Johnson has a reputation beyond reputeAnthony Johnson has a reputation beyond reputeAnthony Johnson has a reputation beyond reputeAnthony Johnson has a reputation beyond reputeAnthony Johnson has a reputation beyond reputeAnthony Johnson has a reputation beyond reputeAnthony Johnson has a reputation beyond repute
Default

Note that if you're in an infinite loop, i.e. FlexSim doesn't crash but instead just becomes unresponsive, you can explicitly break out of it by pressing Ctrl + Break. On laptops sometimes it's a "Pause" key. If it's infinite recursion, not an infinite loop, then FlexSim will just crash unfortunately. FlexSim does try to detect and break out of infinite recursion, but it's not perfect.
The Following 4 Users Say Thank You to Anthony Johnson For This Useful Post:
Sebastian Hemmann (07-11-2013)
  #4  
Old 07-10-2013
AlanZhang's Avatar
AlanZhang AlanZhang is offline
Flexsim Super Moderator
 
Join Date: Aug 2007
Location: CA
Posts: 289
Downloads: 64
Uploads: 0
Thanks: 88
Thanked 91 Times in 47 Posts
Rep Power: 225
AlanZhang is a jewel in the roughAlanZhang is a jewel in the roughAlanZhang is a jewel in the rough
Default

Quote:
Originally Posted by Anthony Johnson View Post
Note that if you're in an infinite loop, i.e. FlexSim doesn't crash but instead just becomes unresponsive, you can explicitly break out of it by pressing Ctrl + Break. On laptops sometimes it's a "Pause" key. If it's infinite recursion, not an infinite loop, then FlexSim will just crash unfortunately. FlexSim does try to detect and break out of infinite recursion, but it's not perfect.
It seems does not work on my laptop. I have a Dell Prevision laptop.

I write an infinite loop in script window and execute it. Then FlexSim is unresponsive. I do not have a Break key. So I tried Ctrl + Fn + Pause, it won't work. I tried other key combinations as well. Anyone has similar laptop and succeed?

Thanks,
Alan
__________________
Best,
Alan


Thread Thread Starter Forum Replies Last Post
flexsim engine shutdown Gavin Douglas Q&A 8 02-07-2013 01:38 PM
I want to look for the flexsim demo about automobile plant, especially engine machining and assembly line... syseo Pre-sales Questions 0 12-11-2012 05:30 AM
Flexsim engine has stopped working Peter Walters Gripes and Goodies 3 07-23-2012 09:51 AM
Using Flexsim as a simulation engine? Kenny Macleod Q&A 2 11-19-2008 03:15 PM
How does a Simulation Engine work ? Vinay Mehendiratta Q&A 2 02-14-2008 01:01 PM


All times are GMT -6.
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Copyright 1993-2018 FlexSim Software Products, Inc.