2014-03-24, 07:13 PM
Way back when I first inserted the code you gave me, I got the following error...
'PlaybackPositionHelper' is not declared. It may be inaccessible due to its protection level.
on this line...
Dim position As Integer = PlaybackPositionHelper.GetPlaybackPosition(filename, duration)
I was then offered suggestions (by Visual Studio) how to correct the problem.
At that time I selected "Generate 'Class Position Helper" which apparantly was wrong.
I really didn't realize I added it
I removed that and tried the next suggestion; Generate Field, which gave me this error..
************** Exception Text **************
System.NullReferenceException: Object variable or With block variable not set.
at Microsoft.VisualBasic.CompilerServices.Symbols.Container..ctor(Object Instance)
at Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateGet(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack)
at NewRec.Test3.class1.PluginCallback(Object source, String command, Object args) in C:\Users\John\Documents\Visual Studio 2010\Projects\NewRec\NewRec\Class1.vb:line 367
at NewRec.Test3.SomePopup.HandleButtonCommand1(String buttonName) in C:\Users\John\Documents\Visual Studio 2010\Projects\NewRec\NewRec\SomePopup.vb:line 149
at NUtility.Controls.UiButtonList.OnKeyDown(KeyEventArgs e)
at NewRec.Test3.SomePopup.OnKeyDown(KeyEventArgs e) in C:\Users\John\Documents\Visual Studio 2010\Projects\NewRec\NewRec\SomePopup.vb:line 68
..........
I removed that and tried the next suggestion; Generate Method Stub, which gave me this error...
************** Exception Text **************
System.NotImplementedException: The method or operation is not implemented.
at NewRec.Test3.class1.PlaybackPositionHelper() in C:\Users\John\Documents\Visual Studio 2010\Projects\NewRec\NewRec\Class1.vb:line 379
at NewRec.Test3.class1.PluginCallback(Object source, String command, Object args) in C:\Users\John\Documents\Visual Studio 2010\Projects\NewRec\NewRec\Class1.vb:line 365
at NewRec.Test3.SomePopup.HandleButtonCommand1(String buttonName) in C:\Users\John\Documents\Visual Studio 2010\Projects\NewRec\NewRec\SomePopup.vb:line 149
at NUtility.Controls.UiButtonList.OnKeyDown(KeyEventArgs e)
at NewRec.Test3.SomePopup.OnKeyDown(KeyEventArgs e) in C:\Users\John\Documents\Visual Studio 2010\Projects\NewRec\NewRec\SomePopup.vb:line 68
at NextPVR.ControllerForm.OnKeyDown(Object sender, KeyEventArgs e)
..........
Finally tried Property Stub
************** Exception Text **************
System.NullReferenceException: Object variable or With block variable not set.
at Microsoft.VisualBasic.CompilerServices.Symbols.Container..ctor(Object Instance)
at Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateGet(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack)
at NewRec.Test3.class1.PluginCallback(Object source, String command, Object args) in C:\Users\John\Documents\Visual Studio 2010\Projects\NewRec\NewRec\Class1.vb:line 368
at NewRec.Test3.SomePopup.HandleButtonCommand1(String buttonName) in C:\Users\John\Documents\Visual Studio 2010\Projects\NewRec\NewRec\SomePopup.vb:line 149
at NUtility.Controls.UiButtonList.OnKeyDown(KeyEventArgs e)
at NewRec.Test3.SomePopup.OnKeyDown(KeyEventArgs e) in C:\Users\John\Documents\Visual Studio 2010\Projects\NewRec\NewRec\SomePopup.vb:line 68
.................
The only suggestion left is to Generate New Type, which would require several other parameters that I don't understand.
'PlaybackPositionHelper' is not declared. It may be inaccessible due to its protection level.
on this line...
Dim position As Integer = PlaybackPositionHelper.GetPlaybackPosition(filename, duration)
I was then offered suggestions (by Visual Studio) how to correct the problem.
At that time I selected "Generate 'Class Position Helper" which apparantly was wrong.
I really didn't realize I added it
I removed that and tried the next suggestion; Generate Field, which gave me this error..
************** Exception Text **************
System.NullReferenceException: Object variable or With block variable not set.
at Microsoft.VisualBasic.CompilerServices.Symbols.Container..ctor(Object Instance)
at Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateGet(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack)
at NewRec.Test3.class1.PluginCallback(Object source, String command, Object args) in C:\Users\John\Documents\Visual Studio 2010\Projects\NewRec\NewRec\Class1.vb:line 367
at NewRec.Test3.SomePopup.HandleButtonCommand1(String buttonName) in C:\Users\John\Documents\Visual Studio 2010\Projects\NewRec\NewRec\SomePopup.vb:line 149
at NUtility.Controls.UiButtonList.OnKeyDown(KeyEventArgs e)
at NewRec.Test3.SomePopup.OnKeyDown(KeyEventArgs e) in C:\Users\John\Documents\Visual Studio 2010\Projects\NewRec\NewRec\SomePopup.vb:line 68
..........
I removed that and tried the next suggestion; Generate Method Stub, which gave me this error...
************** Exception Text **************
System.NotImplementedException: The method or operation is not implemented.
at NewRec.Test3.class1.PlaybackPositionHelper() in C:\Users\John\Documents\Visual Studio 2010\Projects\NewRec\NewRec\Class1.vb:line 379
at NewRec.Test3.class1.PluginCallback(Object source, String command, Object args) in C:\Users\John\Documents\Visual Studio 2010\Projects\NewRec\NewRec\Class1.vb:line 365
at NewRec.Test3.SomePopup.HandleButtonCommand1(String buttonName) in C:\Users\John\Documents\Visual Studio 2010\Projects\NewRec\NewRec\SomePopup.vb:line 149
at NUtility.Controls.UiButtonList.OnKeyDown(KeyEventArgs e)
at NewRec.Test3.SomePopup.OnKeyDown(KeyEventArgs e) in C:\Users\John\Documents\Visual Studio 2010\Projects\NewRec\NewRec\SomePopup.vb:line 68
at NextPVR.ControllerForm.OnKeyDown(Object sender, KeyEventArgs e)
..........
Finally tried Property Stub
************** Exception Text **************
System.NullReferenceException: Object variable or With block variable not set.
at Microsoft.VisualBasic.CompilerServices.Symbols.Container..ctor(Object Instance)
at Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateGet(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack)
at NewRec.Test3.class1.PluginCallback(Object source, String command, Object args) in C:\Users\John\Documents\Visual Studio 2010\Projects\NewRec\NewRec\Class1.vb:line 368
at NewRec.Test3.SomePopup.HandleButtonCommand1(String buttonName) in C:\Users\John\Documents\Visual Studio 2010\Projects\NewRec\NewRec\SomePopup.vb:line 149
at NUtility.Controls.UiButtonList.OnKeyDown(KeyEventArgs e)
at NewRec.Test3.SomePopup.OnKeyDown(KeyEventArgs e) in C:\Users\John\Documents\Visual Studio 2010\Projects\NewRec\NewRec\SomePopup.vb:line 68
.................
The only suggestion left is to Generate New Type, which would require several other parameters that I don't understand.