T.R | Title | User | Personal Name | Date | Lines |
---|
2204.1 | Bug is Boolean passed to GetNextSegment | TLE::D_SMITH | | Mon Feb 05 1990 14:03 | 4 |
| Your fourth argument to DwtGetNextSegment (called dummyb) represents the
dir_r_to_l parameter. It *must* be declared as an int and not a Boolean.
I (and others) have gotten bit by this one.
|
2204.2 | VMS 5.3 crash on DwtGetNextSegment | FREZEN::PROJECTS | | Mon Feb 05 1990 14:35 | 13 |
|
I thank you for sharing the help.
I am wondering why changes like this are not detailed in the release
notes. This could have affected the software delivery scheduled in my
group in 5 days. I know nobody intends to leave us guessing on purpose
... I just think it could be safe on the profile of the company if
problems, especially ones that cause a ripple effect, could be more
detailed.
Thanks
|
2204.3 | | PSW::WINALSKI | Careful with that VAX, Eugene | Mon Feb 05 1990 15:38 | 12 |
| RE: .2
There was no documentation of any change because whatever change was made didn't
affect the interface to the routine. According to the DECwindows V1 (VMS V5.1)
documentation, the dir_r_to_l parameter should be declared:
int *dir_r_to_l;
Thus, your program has always had a bug in it. Nobody has ever guaranteed that
buggy programs will behave the same way, release to release.
--PSW
|
2204.4 | Common bug | CLTVAX::dick | Dick Schoeller - Failed Xperiment | Mon Feb 05 1990 16:39 | 4 |
| Unfortunately, this is a bug that many applications are likely to have
because it arises from code copied from DECBURGER 8^{(.
Dick
|
2204.5 | | QUARK::LIONEL | Free advice is worth every cent | Mon Feb 05 1990 16:41 | 5 |
| Re: .4
Huh? There's no use of DwtGetNextSegment in DECBURGER.
Steve
|
2204.6 | Screwed up my citations again | CLTVAX::dick | Dick Schoeller - Failed Xperiment | Tue Feb 06 1990 08:42 | 7 |
| I may be wrong about DECburger. I do know that I copied that code from
somewhere public and had the same bug. Maybe one of the notes files
(DECWINDOWS, DECWINDOWS_PROGRAMMING or DW_EXAMPLES)? I am also pretty sure that
it came from someone whom I was inclined to trust (sort of like the red and
white watch cursor 8^{). In any case that bug has proliferated fairly widely.
Dick
|
2204.7 | | TLE::D_SMITH | | Tue Feb 06 1990 09:26 | 10 |
| On my system, searching DECW$EXAMPLES for GetNextSegment showed this incorrect
usage being used in a file called TESTCALLBACKS.C.
The comments in the file suggest 2 things:
1. It is part of NETED
2. It was generated by UI_GEN
The file is very old, but does show that this code used to work just fine and
was broken in DECwindows V2.
|
2204.8 | | PSW::WINALSKI | Careful with that VAX, Eugene | Tue Feb 06 1990 18:17 | 10 |
| RE: .7
>The file is very old, but does show that this code used to work just fine and
>was broken in DECwindows V2.
I would say rather that the code has always been broken, but by bad luck it
never used to fail catastrophically. It could never have returned the proper
result.
--PSW
|
2204.9 | | QUARK::LIONEL | Free advice is worth every cent | Wed Feb 07 1990 10:39 | 7 |
| There have been many errors in the examples. I have been correcting errors in
DECBURGER and HELLOWORLD as I find them, though my latest corrections didn't
make it into V5.3. In many cases, it was just coincidence that the programs
worked at all. As it stands, most of the examples have severe memory leaks
that have undoubtedly propogated to customer applications.
Steve
|