# Invalid opcode Parameter

**URL:** https://talk.remobjects.com/t/invalid-opcode-parameter/7384
**Category:** Pascal Script
**Created:** [October 16, 2015, 5:42am UTC](https://talk.remobjects.com/t/invalid-opcode-parameter/7384 "2015-10-16T05:42:10Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ken\_davis](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/k/ea5d25/32.png) [@ken\_davis](https://talk.remobjects.com/u/ken_davis)
#### Post date: [October 16, 2015, 5:42am UTC](https://talk.remobjects.com/t/invalid-opcode-parameter/7384/1 "2015-10-16T05:42:11Z")

</div>

I just started experiencing a problem when posting an event to a script. When a socket disconnects, I post an event to the script. It is now taking almost 15 seconds for the script to print that it has received it. Then, when I set the stopscript:boolean flag to stop, it also takes 10 seconds?  
But, If I stop the program with a pPs.stop.  
I get the error ‘invalid opcode parameter’? I am assuming that the problem is related to the error. How can I tell what the invalid opcode parameter is?

Thanks for such a great product !!!  
Ken D

---

<div class="post-metadata">

### Author: ![ck](https://talk.remobjects.com/user_avatar/talk.remobjects.com/ck/32/8740_2.png) [@ck](https://talk.remobjects.com/u/ck)
#### Post date: [October 16, 2015, 6:34am UTC](https://talk.remobjects.com/t/invalid-opcode-parameter/7384/2 "2015-10-16T06:34:03Z")

</div>

I don’t know where the 10 seconds come from (the debugger can probably tell you); but InvalidOpcode generally means the script got corrupted.

---

<div class="post-metadata">

### Author: ![ken\_davis](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/k/ea5d25/32.png) [@ken\_davis](https://talk.remobjects.com/u/ken_davis)
#### Post date: [October 16, 2015, 11:22pm UTC](https://talk.remobjects.com/t/invalid-opcode-parameter/7384/3 "2015-10-16T23:22:17Z")

</div>

Is there no way to tell what the invalid opcode is?\>  
It would make it a bit easier to fix, if I could find it!

Thanks,  
Ken
