| Sponsored Ads |
|
|||||||
| Notices |
| Newcomers Forum The newcomers forum is for members who may be: new to forums; intimidated by our size; or just learning about some of the many topics being discussed on the MediaPortal Forum. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Portal Member
Join Date: Jul 2006
Posts: 102
Thanks: 1
Thanked 1 Time in 1 Post
|
Machine "Master":
TV-Server Version: rev 19010 Database: MySQL Community 5.0.51b Operating System: Windows XP Pro SP3 with updated psisdecd.dll's 1. TV Card Type: DVB-T FTA Machine "Client": TsReader: latest Network: WiFi 'N' @ 300mbps System.InvalidOperationException: Collection was modified; enumeration operation may not execute. at System.Collections.ArrayList.ArrayListEnumeratorSi mple.MoveNext() at Gentle.Framework.PersistenceBroker.GetCacheResult( String statementHashKey) at Gentle.Framework.PersistenceBroker.RetrieveList(Ty pe type, Key key, IList result, IDbConnection conn, IDbTransaction tr) at Gentle.Framework.Broker.RetrieveList(Type type) at TvDatabase.Channel.ListAll() at TvDatabase.TvBusinessLayer.get_Channels() any ideas? i dont know how to reproduce the problem reliably, it's sorta random. Last edited by binary64; 2008-05-09 at 03:10. Reason: Automerged Doublepost |
|
|
|
|
|
#2 (permalink) |
|
Portal Developer
Join Date: Jan 2005
Age: 30
Posts: 2,288
Thanks: 56
Thanked 57 Times in 47 Posts
|
Are you able to trigger this error with the MP's own tve3 client?
__________________
http://day2.no-ip.org/ "Commy64 - The problem there is that Oprah was on. MP tried to save you by blanking the screen" |
|
|
|
|
|
#4 (permalink) |
|
Portal Developer
Join Date: Jan 2005
Age: 30
Posts: 2,288
Thanks: 56
Thanked 57 Times in 47 Posts
|
Sure it will be looked at some point, but the priority is first on those bugs that are affecting MP users.
__________________
http://day2.no-ip.org/ "Commy64 - The problem there is that Oprah was on. MP tried to save you by blanking the screen" |
|
|
|
|
|
#5 (permalink) |
|
Portal Member
Join Date: Jul 2006
Posts: 102
Thanks: 1
Thanked 1 Time in 1 Post
|
New Issue
========= If I do: result = TvControl.RemoteControl.Instance.StartTimeShifting (ref m_user, 33, out card); result = TvControl.RemoteControl.Instance.StartTimeShifting (ref m_user, 33, out card); result = TvControl.RemoteControl.Instance.StartTimeShifting (ref m_user, 33, out card); the results are: NoVideoAudioDetected, UnknownChannel, UnknownChannel (incorrect/bug imo) notes: * yes, the channel is off-air at this time * m_user means it's a member field, in ctor, m_user = new User("Test", true); However, TvControl.User methodlocal_user; methodlocal_user = new TvControl.User("Test", true); result = TvControl.RemoteControl.Instance.StartTimeShifting (ref methodlocal_user, 33, out card); methodlocal_user = new TvControl.User("Test", true); result = TvControl.RemoteControl.Instance.StartTimeShifting (ref methodlocal_user, 33, out card); methodlocal_user = new TvControl.User("Test", true); result = TvControl.RemoteControl.Instance.StartTimeShifting (ref methodlocal_user, 33, out card); the results are: NoVideoAudioDetected, NoVideoAudioDetected, NoVideoAudioDetected (correct imo) I would prefer to use the member field method (this.user, created only in ctor). Any ideas why this difference is happening? Is this a bug or a .Net thing I don't know about? The reason I'm doing this, is when user idles on an off-air channel, i am polling it every few seconds so that when the channel finally comes back on air, it immedately starts playing. Thanks! |
|
|
|
|
|
#6 (permalink) |
|
Portal Member
Join Date: Jul 2006
Posts: 102
Thanks: 1
Thanked 1 Time in 1 Post
|
Bug Report
========= XP Pro SP3 + dvbfix The tvservice service unexpectedly terminated. Logs attached. I think this is related to my above post here - the User() and its usage. Also what is the consequence of multiple slaves using the same string for the Username at once? |
|
|
|
|
|
#7 (permalink) | |
|
Portal Developer
Join Date: Apr 2005
Location: Osnabruck
Posts: 2,484
Thanks: 79
Thanked 95 Times in 69 Posts
Country:
|
Quote:
|
|
|
|
|
|
|
#9 (permalink) |
|
Portal Developer
Join Date: Apr 2005
Location: Osnabruck
Posts: 2,484
Thanks: 79
Thanked 95 Times in 69 Posts
Country:
|
Doesn't matter at all.
Look for some C# how-to to multi-threaded programming. A quick sample app where: Thread 1 loops through an ArrayList (or any list implementing IEnumerable). Thread 2 modifies any items of the list while Thread 1 is still running. Will show you the issue. Most likely you aren't aware why you trigger this because MP's gentle DB statements are executed from the same thread which communicates with the "businesslayer". You however most likely use an own thread to query it's methods. Of course since TVE is Thread 1 of this example (which throws InvalidOperationException then). |
|
|
|
|
|
#10 (permalink) | |
|
Portal Developer
Join Date: Jun 2007
Location: Ghent
Age: 20
Posts: 73
Thanks: 2
Thanked 0 Times in 0 Posts
Country:
|
Quote:
|
|
|
|
|
![]() |
| Bookmarks |
| Tags |
| api, questions, thread |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to record via api? | binary64 | Development | 1 | 2008-05-26 06:34 |
| About new MP2 API | fabriceD06 | Help on Development | 2 | 2008-01-30 14:27 |
| General Issues and Questions re: Tvengine3 | jako77 | General Talk | 7 | 2007-08-10 05:15 |
| [Discussion Thread] Info-Thread for Designers | infinityloop | Skins | 0 | 2007-07-16 11:02 |