Unconfigured Ad Widget

Collapse

Announcement

Collapse
No announcement yet.

Pointers on a program

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Pointers on a program

    We have a program that uses APIs to determine the amout of diskusage that is taking place on our system. When running the program last night we reveived this error. ? What is a pointer? and what is it refereing to in this error? Thankks for any direction someone can provide. 40 07/22/01 01:39:38 < 000040 QDBSVPRE QSYS From Program . . . . . . . : setspaceptrfromptr Message . . . . : Pointer not set for location referenced. Cause . . . . . : A pointer was used, either directly or as a basing pointer, that has not been set to an address.

  • #2
    Pointers on a program

    The AS400 traditionally has at least eight types of pointers .. (space, data, system, instruction, invocation, procedure, label and suspend) where the first four are most common and are used as the 'base' for addressing AS400 objects. For example data structures are generally implemented on the MachineInterface level as 'space data objects' which are 'based' (i.e. they begin in memory at the location identified by the space pointer). The implementation is a 16 byte aligned structure which provides the address of an object in the single level store along with some status bits and authority bits. The error which you received was from the SLIC entry point .setspaceptrfromptr in module #oxsppfp and generally results from trying to resolve a space pointer from a 'passed parameter' which was not initialized or is invalid. HTH

    Comment

    Working...
    X