- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I've got a code that allocates a small array but the status return from allocate is giving me an error code of -1. Allocate is supposed to return a postive integer in the case of an error. Does anyone know what it means when allocate returns an error of -1?
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I haven't seen that and can't spot in the code where that would happen. If you can provide a test case to Intel Premier Support, that would be helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Steve,
It turns out that allocate was not returning a status of -1. Somehow our alloc_err variable was getting a value of -1 before hitting an if statement that only called allocate if the array was not already allocated. Since it was, alloc_err was not reset to zero. Thanks for your answer.

Reply
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