Hitman666 / nbCcTalkCoinAcceptor

This project contains usage instructions and code examples (C#) for communication with coin acceptor using the ccTalk protocol
29 stars 19 forks source link

Application started from VS can not accept coins #3

Closed Sebosek closed 10 years ago

Sebosek commented 10 years ago

Hi there, at first thank you for sharing your solution and example application. But now I'm facing to a problem. When I download this repo and start application from builded exe everything works fine, but when I start application (nbCcTalkCoinAcceptor) from Visual Studio (2013 Update3) application reject all coins with message "Coin acceptor error: (InhibitedCoin, 02)" (pooling is enabled and inhibit disabled). What's difference? Or can you give me some tips what should I test? Thank you and have a nice day.

S.

Hitman666 commented 10 years ago

Hi Sebosek,

I'm glad you found it useful. I haven't had any idea what may be your problem (since this was waaay back when I made it), so I used the decompiler (https://www.jetbrains.com/decompiler/download/) and it seems that in the solution project line 48 (Form1.cs) has this: _coinAcceptor.AllowedCoins = CoinIndex.One | CoinIndex.Two | CoinIndex.Three;

try removing this all together, and see what happens. If it doesn't then try to see with that tool what other differences are there.

Hope this will help you!

Sebosek commented 10 years ago

Hi again, thank you for tip, I tried change allowed coins to AllowAll and it seems it works. Thank you again; regards.

S.

Hitman666 commented 10 years ago

Great, I'm glad this resolves the issue for you!