Author |
Topic: OnPriceChanged events for denied subscriptions (10 messages, Page 1 of 1) |
||||
---|---|---|---|---|---|
Moderators: VPfau | |||||
CChen15 Posts: 121 Joined: Jul 23, 2009 |
Hello.
When I exceed max subscriptions limit this resulted to mscorlib.Exception event and I get msg "System.Exception: Your subscription limit of 5 has been reached". But OnPriceChanged events for this contract begin to rising resulting to "ERROR: -2147467261 - Object reference not set to an instance of an object." It's strange, but OnDOMChanged events not occures. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Chen Hua, Russia |
||||
VictorV Posts: 746 Joined: May 08, 2007 |
Hello,
I cannot reproduce "ERROR: -2147467261 - Object reference not set to an instance of an object." with our COM samples. Victor Vins Software Developer |
||||
CChen15 Posts: 121 Joined: Jul 23, 2009 |
The error number is irrelevant in this case. The error is a result only. I say that there should be no quotes for the contract denied to subscription.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Chen Hua, Russia |
||||
VictorV Posts: 746 Joined: May 08, 2007 |
Could you please reproduce it with OEC samples? It would help to figure out the issue.
Victor Vins Software Developer |
||||
CChen15 Posts: 121 Joined: Jul 23, 2009 |
Sorry, I can't.
1. There is only one contract subscribed to DOM. 2. I have tried to insert 'api.SubscribeDOM contract' after Line 23 in Quotes module, but error not rised. I think that you must to know better, when and where API reports "Your subscription limit of 5 has been reached". Try to connect mscorelib.dll and insert to your code its exepctions handler. Please do not misunderstand me - I'm a beginner and I'm very heavily to edit your code. If it help you, "ERROR: -2147467261 - Object reference not set to an instance of an object." rised (and handled by mscorelib OnError handler) after OnDOMChanged event for denied(!) contract and I try to get .BidLevels.Item(0) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Chen Hua, Russia |
||||
CChen15 Posts: 121 Joined: Jul 23, 2009 |
Up
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Chen Hua, Russia |
||||
VictorV Posts: 746 Joined: May 08, 2007 |
This exception happens in client code.
Victor Vins Software Developer |
||||
CChen15 Posts: 121 Joined: Jul 23, 2009 |
What are you able to help me?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Chen Hua, Russia |
||||
VictorV Posts: 746 Joined: May 08, 2007 |
I cannot help to fix client code.
Victor Vins Software Developer |
||||
CChen15 Posts: 121 Joined: Jul 23, 2009 |
I need no in my code fix. I'm needing in consultation and support. I'm a client and you denied me. Indicate please - what I can (must) do to resolve it trouble?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Chen Hua, Russia |
||||