"A null reference pointer was passed to the stub"

Posted on 2005-04-21
Last Modified: 2013-11-08
Our app is built in Delphi and Fortran but I'm not sure that is relevant, so I'm just posting it here:

Anyone know what this error means?

1780 A null reference pointer was passed to the stub. RPC_X_NULL_REF_POINTER

It's happening on 2/3 XP SP1 machines, not sure what the difference between the two machine's is.

Question by:Popeyediceclay
    LVL 65

    Accepted Solution

    A null reference pointer is a parameter passed via an API call where the API call does it's processing, and returns a value in that parameter.  Hence, it's null when you pass it, and has a value when you get it back.

    Maybe in your specific case, an API call had a parameter that had a NULL in it, and it should have had a value.

    Hope this helps.
    LVL 23

    Expert Comment

    One would normally diagnose that as a program problem.  The fly in that ointment, however, is that the program works on one of the three boxes.

    Is there any remoting involved?  
    Do the results vary if the programs are run simultaneously, or not?
    If simultaneous, are there any common files, or does it matter which runs first?

    There are any number of possible external causes, or it could still be a program problem that requires certain conditions for the error to occur.

    A bit more info about the operating environment will hellp ferret out the problem.

    LVL 3

    Author Comment

    I dont have specs of the environment, it's at a client site.  I imagine it is an environment issue that differs between the three machines.  However, I suppose it would be best to fix this issue at the program level to avoid the need to repair 2/3 of all machines that install the application.  Fortran seems to have issues with long file names and spaces within paths, I think it has something to do with that.  Still waiting on what parameters are being passed to the API, should give us a better explanation of what's different about the machines.
    LVL 65

    Expert Comment

    by:Jim Horn
    In Windows there is a win32api.txt file (either ships with your pc, or you can download from that contains all API calls.  I would guess that there is a similar one for Delphi and Fortran, perhaps off of their websites.

    Thanks for the grade.  Good luck on your project.
    LVL 3

    Author Comment

    Thanks Jim

    Featured Post

    Course: HTML5 Mobile App Development with PhoneGap

    PhoneGap can help you leverage your already existing HTML5, JavaScript, and CSS skills in order to create and deploy cross-platform mobile apps.This program comprehensively covers HTML5 mobile app development from top to bottom.

    Join & Write a Comment

    Windows Script Host (WSH) has been part of Windows since Windows NT4. Windows Script Host provides architecture for building dynamic scripts that consist of a core object model, scripting hosts, and scripting engines. The key components of Window…
    A short article about a problem I had getting the GPS LocationListener working.
    This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
    The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now