Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 21

Thread: how do you control transitions in .Net

  1. #11
    Low Bitrate
    Join Date
    Sep 2005
    Location
    Sweden (South)
    Posts
    111
    Thanks GoC!

    I'm no MFC coder so.. But when you say it, it's quite obvious..

    This will make things SO MUCH EASIER!..

  2. #12
    Low Bitrate
    Join Date
    Sep 2005
    Location
    Sweden (South)
    Posts
    111
    .. and now I've actually tried. I can't get it to work.

    my code:
    Code:
    for (uint iPos = module.GetHeadPanelPos(); iPos != 0; )
    {
        IDualPanel panel = module.GetNextPanel(ref iPos);
        Tex.WriteLine("{0:d} {1:s}", iPos, panel.GetFunctionName());
    
    }
    This is what I get if I just output the ipos variable and the function names:
    Code:
    177406544 Header
    177406544 Section
    177406544 SubSection
    177406544 SubSection1
    177406544 SubSection2
    177406544 TuneLabel
    ... (lots of panels..)
    177406544 ButtonMoreSettings
    177406544 Home
    177406544 Back
    177406544 VolumeOverlayToggle
    177406544 presetList
    And it still crashes..

  3. #13
    Raw Wave god_of_cpu's Avatar
    Join Date
    Jan 2004
    Location
    SilverSpring Maryland
    Posts
    2,960
    I can run the code I posted just fine.

    If you create a new module and put nothing but that code in it, does it still crash?

    Does it look like it gets through the entire list before crashing or is it crashing on one of the panels its returning?
    StreetDeck.com Developer (I am Chuck)
    Get StreetDeck at http://www.streetdeck.com
    The Official StreetDeck Forums have moved, please visit us at http://www.streetdeck.com/forum for official support for Streetdeck.

  4. #14
    Low Bitrate
    Join Date
    Sep 2005
    Location
    Sweden (South)
    Posts
    111
    My exact code is:

    Code:
                try
                {
                    FileInfo f = new FileInfo("c:\\CHQCTRadioModulePanels.txt");
                    StreamWriter Tex = f.CreateText();
    
                    for (uint iPos = module.GetHeadPanelPos(); iPos != 0; )
                    {
                        IDualPanel panel = module.GetNextPanel(ref iPos);
                        Tex.WriteLine("{0:d} {1:s}", iPos, panel.GetFunctionName());
                        Tex.Flush();
                    }
                    Tex.Close();
                }
                catch (Exception e)
                {
    
                }
    It will ALWAYS end up in the catch statement since the GetNextPanel call will generate an AccessViolation after going through ALL the panels. Streetdeck does not crash, but the addin module is dead (doesn't render anything..) The iPos variable will always have the same value and will never be 0 (or NULL).

    If I remove the try catch statements, entering the module will give me a BLACK screen, not even the static background.

    I can try to create a completely new addin and see if I can get it to work..

    UPDATE:
    I added a new addin using the example on the wiki and ONLY added the code above. I get the same result. Access violation. I added the code after row 46 in Class1.cs.
    I get the file with panels and the pointer, but its the same:
    Code:
    177290972 Header
    177290972 Section
    177290972 SubSection
    177290972 SubSection1
    177290972 SubSection2
    177290972 Home
    177290972 Back
    177290972 VolumeOverlayToggle
    177290972 ShowOverlay
    I'm running 1.1.0.0...

  5. #15
    Low Bitrate
    Join Date
    Sep 2005
    Location
    Sweden (South)
    Posts
    111
    One again, I'm getting "no" help from the StreetDeck guys...

    You could at least ask me to report it as a bug or convince me that it is working...
    More or less all the "advanced" questions I have had have gone unanswered... sad really..

    SHAPE UP!

  6. #16
    Raw Wave god_of_cpu's Avatar
    Join Date
    Jan 2004
    Location
    SilverSpring Maryland
    Posts
    2,960
    Sorry I am unable to duplicate the error on my test machine.
    StreetDeck.com Developer (I am Chuck)
    Get StreetDeck at http://www.streetdeck.com
    The Official StreetDeck Forums have moved, please visit us at http://www.streetdeck.com/forum for official support for Streetdeck.

  7. #17
    Low Bitrate
    Join Date
    Sep 2005
    Location
    Sweden (South)
    Posts
    111
    I have created a package of my failing panel addin. (based on TestAddin). Is it working for you? (it includes a file (ModulePanels.txt) with the output I get on my machine..)

    PanelBugAddin.zip

    Rename to .sdz. For some reason, my IIS 6.0 refuses to allow access to files with ending .sdz!?

    Can you create a package of the addin you have WORKING so I can test it here?

    Please?

  8. #18
    Newbie
    Join Date
    Mar 2008
    Posts
    7
    FWIW, even though is a fairly old post - I can repro this exact same error in my plugin using VB.NET, and always occurs after the VOLUMEOVERLAYTOGGLE panel.

    Code:
        Private Function GetPanelByName(ByVal PanelName As String) As SD.IDualPanel
    
            Dim NextPanel As Int32 = 0
            Dim ReturnPanel As Object = Nothing
    
            NextPanel = SDModule.GetHeadPanelPos
            While NextPanel <> 0
    
                'Get the next instance of the panel
                Try
                    Dim CurrentPanel As SD.IDualPanel = SDModule.GetNextPanel(NextPanel)
    
    
                    Dim CurrentPanelName As String = CurrentPanel.GetFunctionName
    
                    If CurrentPanelName.ToUpper = "VOLUMEOVERLAYTOGGLE" Then
                        Stop
                    End If
    
                    If CurrentPanelName.ToUpper = PanelName.ToUpper Then
                        ReturnPanel = CurrentPanel
                        Exit While
                    End If
                Catch
                End Try
            End While
    
            Return ReturnPanel
    
        End Function

  9. #19
    Low Bitrate
    Join Date
    Sep 2005
    Location
    Sweden (South)
    Posts
    111
    The problem i wrote about above was fixed in 1.1.1.6.

    Maybe you are having other problems?

  10. #20
    Newbie
    Join Date
    Mar 2008
    Posts
    7
    This is possible. In the designer my module doesn't look as I might expect it to, because I think I have inadvertently cleared it.

    It's still the 'access violation' error which is why I thought it might be linked as essentially I am iterating through panels as you were.

    Interestingly, I seem to be unable to programmatically create any panels on this module now.

Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Help with Climate Control.....
    By map_auto in forum General Hardware Discussion
    Replies: 1
    Last Post: 06-07-2006, 06:07 AM
  2. How to control the wave output in ME
    By d.a.one in forum Media Engine
    Replies: 3
    Last Post: 05-06-2006, 12:41 PM
  3. Feature Request: Advanced Volume Control
    By skeeter007 in forum Road Runner
    Replies: 6
    Last Post: 03-20-2006, 06:23 PM
  4. no sound control with emulators
    By selmerguy in forum Mobile Impact
    Replies: 2
    Last Post: 02-04-2006, 08:58 PM
  5. My LPT Relay Control Software
    By wizardPC in forum Software & Software Development
    Replies: 23
    Last Post: 02-13-2005, 01:10 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •