Click here to Skip to main content
15,900,258 members
Home / Discussions / C#
   

C#

 
Questionlibvlc dll with network streaming is not working Pin
Member 1288274528-Apr-18 19:34
Member 1288274528-Apr-18 19:34 
AnswerRe: libvlc dll with network streaming is not working Pin
Jochen Arndt29-Apr-18 1:09
professionalJochen Arndt29-Apr-18 1:09 
GeneralRe: libvlc dll with network streaming is not working Pin
Member 1288274529-Apr-18 19:01
Member 1288274529-Apr-18 19:01 
GeneralRe: libvlc dll with network streaming is not working Pin
Jochen Arndt29-Apr-18 21:10
professionalJochen Arndt29-Apr-18 21:10 
GeneralRe: libvlc dll with network streaming is not working Pin
Member 1288274529-Apr-18 23:15
Member 1288274529-Apr-18 23:15 
GeneralRe: libvlc dll with network streaming is not working Pin
Member 128827452-May-18 19:33
Member 128827452-May-18 19:33 
QuestionTax Calculator using C# in a Cross Platform file. Pin
Aishah Alsaadi28-Apr-18 2:21
professionalAishah Alsaadi28-Apr-18 2:21 
AnswerRe: Tax Calculator using C# in a Cross Platform file. Pin
OriginalGriff28-Apr-18 2:43
mveOriginalGriff28-Apr-18 2:43 
AnswerRe: Tax Calculator using C# in a Cross Platform file. Pin
hamid1829-Apr-18 23:48
hamid1829-Apr-18 23:48 
QuestionUWP / VisualStudio 2017 and StackOverflowException Pin
Super Lloyd26-Apr-18 21:07
Super Lloyd26-Apr-18 21:07 
GeneralRe: UWP / VisualStudio 2017 and StackOverflowException Pin
Richard MacCutchan26-Apr-18 22:47
mveRichard MacCutchan26-Apr-18 22:47 
QuestionRe: UWP / VisualStudio 2017 and StackOverflowException Pin
Super Lloyd27-Apr-18 0:35
Super Lloyd27-Apr-18 0:35 
AnswerRe: UWP / VisualStudio 2017 and StackOverflowException Pin
Richard MacCutchan27-Apr-18 2:00
mveRichard MacCutchan27-Apr-18 2:00 
GeneralRe: UWP / VisualStudio 2017 and StackOverflowException Pin
Super Lloyd27-Apr-18 3:50
Super Lloyd27-Apr-18 3:50 
GeneralRe: UWP / VisualStudio 2017 and StackOverflowException Pin
Richard MacCutchan27-Apr-18 3:53
mveRichard MacCutchan27-Apr-18 3:53 
GeneralRe: UWP / VisualStudio 2017 and StackOverflowException Pin
Super Lloyd27-Apr-18 3:58
Super Lloyd27-Apr-18 3:58 
AnswerRe: UWP / VisualStudio 2017 and StackOverflowException Pin
Pete O'Hanlon27-Apr-18 0:44
mvePete O'Hanlon27-Apr-18 0:44 
GeneralRe: UWP / VisualStudio 2017 and StackOverflowException Pin
Super Lloyd27-Apr-18 3:50
Super Lloyd27-Apr-18 3:50 
GeneralRe: UWP / VisualStudio 2017 and StackOverflowException Pin
Pete O'Hanlon27-Apr-18 21:34
mvePete O'Hanlon27-Apr-18 21:34 
GeneralRe: UWP / VisualStudio 2017 and StackOverflowException Pin
Super Lloyd27-Apr-18 23:47
Super Lloyd27-Apr-18 23:47 
AnswerRe: UWP / VisualStudio 2017 and StackOverflowException Pin
BillWoodruff27-Apr-18 18:45
professionalBillWoodruff27-Apr-18 18:45 
GeneralRe: UWP / VisualStudio 2017 and StackOverflowException Pin
Super Lloyd27-Apr-18 23:49
Super Lloyd27-Apr-18 23:49 
AnswerRe: UWP / VisualStudio 2017 and StackOverflowException Pin
Eddy Vluggen28-Apr-18 0:01
professionalEddy Vluggen28-Apr-18 0:01 
GeneralRe: UWP / VisualStudio 2017 and StackOverflowException Pin
Super Lloyd28-Apr-18 0:41
Super Lloyd28-Apr-18 0:41 
SuggestionRe: UWP / VisualStudio 2017 and StackOverflowException PinPopular
Eddy Vluggen28-Apr-18 1:07
professionalEddy Vluggen28-Apr-18 1:07 
Sure it works. Windows hasn't been changed that much.
C#
static class Program
{
    /// <summary>
    /// The main entry point for the application.
    ///   (For those confused about it)
    /// </summary>
    [STAThread]
    static void Main()
    {
        Thread.CurrentThread.Name = String.Format("Main UI thread for", Application.ProductName);

        Task BackgroundJsonLoader = Task.Factory.StartNew(() =>
        {
            Thread.CurrentThread.Name = "BackgroundJsonLoader_C71B0546796D46A894925EAF6A0CF420";
            Debug.WriteLine(Thread.CurrentThread.Name);
            Debugger.Break();
        });
When the debugger breaks, go the menu and select from "Debug" the submenu "Windows", the item "Threads" (Ctrl-D, T). You'll now have a list of all active threads. The named ones were created by you, in code. That gives us not just the advantage that we now can identify any thread or task by name, we can also see whether we spawned it or some third-party library.

Very easy to do, rarely ever done. The reason I added a GUID in there is to locate it quickly, as it is always my first line of code on the start of each thread or task.


--Downloading 2017 Community Edition now, will try it on a UWP app once the download is done Thumbs Up | :thumbsup:
Bastard Programmer from Hell Suspicious | :suss:
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.


modified 28-Apr-18 7:28am.

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.