Originally posted by BeenHere
[...] Pick a dramatically higher order ID numbers (something like 999995) and try again. Someone wrote in this forum that if the order ID number is lower than a previous ID, it won't work. I have no idea it this is true or not.
Unfortunately, IB decided to make the checking for uniqueness of IDs persistent across sessions in on of the recent TWS releases. Transactions the reuse IDs are dropped and ignored by TWS (check the TWS log files to see if this is happening to you). TWS stores the last used ID in the entry DdeId in the Settings section of the user.ini file. The only safe way to manage IDs is to manage your own IDs in the registry (or a multiuser capable DBMS if you have multiple applications interfacing simulatenously), compare with the entry in user.ini on startup and adjust new IDs to whichever is higher.
Dave