HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- simple code fails on open vms 8.2 while the same w...
Operating System - OpenVMS
1827288
Members
3209
Online
109717
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2005 02:05 AM
05-19-2005 02:05 AM
simple code fails on open vms 8.2 while the same works on 7.3
status = sys$qio( TERM_EFN, term, IO$_READVBLK, &iosb, NULL, NULL,
&accmsg, sizeof( ACCDEF2 ), 0, 0, 0, 0 );
fails while closing the mailbox with the termination messg. term here is a short int type.
&accmsg, sizeof( ACCDEF2 ), 0, 0, 0, 0 );
fails while closing the mailbox with the termination messg. term here is a short int type.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2005 02:20 AM
05-19-2005 02:20 AM
Re: simple code fails on open vms 8.2 while the same works on 7.3
The code is not that simple and including the error code would give us additional information to help you.
Unfortunately it is not clear how experienced your are with QIOs (no offense intended), but you do realize that this is an asynchronous QIO which very likely completes after the return to your main program.
With such little information I'd guess you have found a race condition.
Unfortunately it is not clear how experienced your are with QIOs (no offense intended), but you do realize that this is an asynchronous QIO which very likely completes after the return to your main program.
With such little information I'd guess you have found a race condition.
.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2005 03:25 AM
05-19-2005 03:25 AM
Re: simple code fails on open vms 8.2 while the same works on 7.3
>> simple code fails on open vms 8.2 while the same works on 7.3
How does it fail? R0 return status? IOSB return status? What does the sync code after the async QIO look like? $WAITFR? $WTFLOR? $SYNC?. Is the EFN checked as well as the iosb to make sure the call is finished?
Where does it fail? This call or a future $deasgn?
>> term here is a short int type
Doe it work again when you use an int?
Like Uwe says, your report is a little short to make useful comments on.
It is good to have the report. Great, thank you.
It is good to know that a change in 8.2 seems to create a problem for a program that seemed to work before.
It may have worked, but it may have been broken all along anyway, and you were just unlucky it happened to work while being developed.
For example: the IO channel argument is documented (7.30 to be an unsigned longword. With the side note that only the lower 16 bits are used. Now if you pass it a short it, it will be sign extended which for certain channel values will set the upper bits. I would call such program broken, even though the upper bits were, at one point, supposed to be ignored. Why risk it?
Hope this helps some,
Hein.
How does it fail? R0 return status? IOSB return status? What does the sync code after the async QIO look like? $WAITFR? $WTFLOR? $SYNC?. Is the EFN checked as well as the iosb to make sure the call is finished?
Where does it fail? This call or a future $deasgn?
>> term here is a short int type
Doe it work again when you use an int?
Like Uwe says, your report is a little short to make useful comments on.
It is good to have the report. Great, thank you.
It is good to know that a change in 8.2 seems to create a problem for a program that seemed to work before.
It may have worked, but it may have been broken all along anyway, and you were just unlucky it happened to work while being developed.
For example: the IO channel argument is documented (7.30 to be an unsigned longword. With the side note that only the lower 16 bits are used. Now if you pass it a short it, it will be sign extended which for certain channel values will set the upper bits. I would call such program broken, even though the upper bits were, at one point, supposed to be ignored. Why risk it?
Hope this helps some,
Hein.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP