Results 1 to 2 of 2

Thread: Crash in NDILibDotNet2 using WPF.ReceiveView

  1. #1
    Registered User
    Join Date
    Oct 2019
    Location
    Berlin
    Posts
    1

    Crash in NDILibDotNet2 using WPF.ReceiveView

    Hello,

    I've played around with the SDK but there is a crash in the WPF.ReceiveView.cs at
    Code:
    VideoBitmap.WritePixels(new Int32Rect(0, 0, xres, yres),  videoFrame.p_data, bufferSize, stride);
    . Looks like a memory leak. Even the Managed NDI Receive example is crashing when a NDI stream is ariving.

    Has anyone an idea?

    Thanks!

  2. #2
    Registered User
    Join Date
    Jan 2020
    Location
    Melbourne
    Posts
    1
    Hi,

    I am having the same problem with WPF.ReceiverView.cs at

    NDIlib.recv_create_v3_t recvDescription = new NDIlib.recv_create_v3_t()
    {
    // the source we selected
    source_to_connect_to = source_t,

    // we want BGRA frames for this example
    color_format = NDIlib.recv_color_format_e.recv_color_format_BGRX_ BGRA,

    // we want full quality - for small previews or limited bandwidth, choose lowest
    bandwidth = NDIlib.recv_bandwidth_e.recv_bandwidth_highest,

    // let NDIlib deinterlace for us if needed
    allow_video_fields = false,

    // The name of the NDI receiver to create. This is a NULL terminated UTF8 string and should be
    // the name of receive channel that you have. This is in many ways symettric with the name of
    // senders, so this might be "Channel 1" on your system.
    p_ndi_recv_name = UTF.StringToUtf8(ReceiverName)
    };

    If I change bandwidth to highest it causes memory leak. Can I get any help on this?

    Thanks.

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
  •