Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8934061
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T09:41:50+00:00 2026-06-15T09:41:50+00:00

I am working on a P2P Twitter client for an introductory networking class. I

  • 0

I am working on a P2P Twitter client for an introductory networking class. I am attempting to give my peer a way to register itself so other peers can discover it. I am creating a DNS TXT record so that I can call DNSSD.Register(). However, when this method is called I get an error that reads:

What is causing this error (java): “Invalid memory access of location 0x0 rip=0x106282bae”

Here is the method that is causing it:

import com.apple.dnssd.*;
    public static void announce()throws com.apple.dnssd.DNSSDException{
        TXTRecord txtRec = new TXTRecord();
        txtRec.set("Version", "1.1");
        txtRec.set("EncryptionSupport", "false");
        txtRec.set("DisplayName", profile.getPropertyValue("UserName"));
        txtRec.set("UserID", profile.getPropertyValue("UserID"));

        RegisterListener myRegisterListener = null;
        DNSSDRegistration reg = null;
        RegisterListener myRegistrationListener = null;
        reg = DNSSD.register
            (0, DNSSD.ALL_INTERFACES, profile.getPropertyValue("UserName"),
            profile.getPropertyValue("DNSSDServiceName"), 
            null, null, 4444, txtRec, myRegistrationListener);
    }

The “reg = …” line is the one that causes the error to happen. Any ideas about what I’m doing wrong? A lot of this was taken from examples I don’t fully understand.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T09:41:51+00:00Added an answer on June 15, 2026 at 9:41 am

    The problem is that the last argument of DNSSD.register() method should be a valid object.
    Since you are passing it as a NULL pointer, when it is called you get a invalid access to the 0x0 location.

    Take a look at the docs for this method.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on an NMDC client (p2p, DC++ and friends) with Qt. The protocol
I'm working on writing a Python client for Direct Connect P2P networks. Essentially, it
The project I'm working on uses P2P to transfer data between peers much unlike
all! Now I'm working on a p2p file share program in LAN(I use python).
I'm working on an app that relies heavily on P2P, but I currently don't
I'm working on p2p application, all these NAT-PMP and UPNP NAT traversal scenarios are
I've been working on a P2P live streaming app and I'm having some trouble
Working on an asynchronous network programming for a p2p application, I'm having trouble. My
I am working on creating a C# P2P chat messenger without a central server.
I finished a P2P program in Java that is working perfectly in LAN range,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.