|
Are you allocating memory for p_statds before calling stat()?? I'm
guessing (based on the error) that p_statds is still set to *NULL, and
you haven't allocated anything...
On Thu, 18 Apr 2002 rob@dekko.com wrote:
>
> Using Scott's example of stat() I have a concept program working great.
> Now, I am trying to use it in a trigger program and I am running into
> problems:
>
> When stat(%trim(WorkUnc): p_statds) < 0;
> LenWorkUnc=%len(%trim(WorkUnc));
> pStrErrNo = GetErrNo;
> pStrErrMsg = StrError(StrErrNo);
> ErrMsg = %char(StrErrNo) + StrErrMsg;
> rValidUnc=*off;
>
> In debug the following are set:
> WorkUnc = /QNTC/GDSNT/ACAD
> ErrMsg = 3408The address used for an argument was not correct.
> LenWorkUnc = 16
>
> Other information...
>
> D stat PR 10I 0 ExtProc('stat')
> D path * value options(*string)
> D buf * value
>
> D p_statds S *
> D statds DS BASED(p_statds)
> D st_mode 10U 0
> D st_ino 10U 0
> D st_nlink 5U 0
> D st_pad 2A
> D st_uid 10U 0
> D st_gid 10U 0
> D st_size 10I 0
> D st_atime 10I 0
> D st_mtime 10I 0
> D st_ctime 10I 0
> D st_dev 10U 0
> D st_blksize 10U 0
> D st_alctize 10U 0
> D st_objtype 12A
> D st_codepag 5U 0
> D st_resv11 62A
> D st_ino_gen_id 10U 0
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.