andrew@cs.strath.ac.uk (Andrew Watson) (08/02/90)
I am currently trying to implement a simulator using Smalltalk/V R2.00 on an IBM clone/286. In addition to the classes provided by the base system I am also making use of the classes provided by Goodies #1. I have built a simple deterministic model (no random numbers are used) to test my simulator. When I run the simulation I find that sometimes it runs to completion and appears to give results consistent with previous successful runs. On other occassions it runs and returns a "System Primitive Failed" error. There seems to be no pattern to its behaviour. I cannot predict if a run will be successful and when it fails the source of the error seems to be different in each case (although the walkback window always seems to include a "resume" message at some point). I have tried doing a "Processor schedule" to remove any stray processes and also removing any stray instances of the classes involved in the simulation (ie. Classname allInstances do: [:each| each become: String new]) before I run it. All to no avail. If anyone has any suggestions as to what may be going wrong and how to fix it I will be extremely grateful. Any responses can be posted to the newsgroup or e-mailing me directly at: andrew@uk.ac.strath.cs Thanks in advance, Andy Watson.