This is the Code in C400 Program:
/***Declaration ***/
crtsub wwcsub;
crtsub *csub_pt; /** where CRTSUB is a data structure.**/
In the code I have two statements one after the other
csub_pt = malloc(sizeof (crtsub));
csub_pt = &wwcsub;
Note: it is #include <sys/errno.h> //// What is the perpose
of it???
Its looks like strange , cusb_pt is getting overridden by the address of
the variable. So what is the point of malloc.
So I commented this like (malloc ), but then got the issue below after
20 calls to this program in the same job.
MCH0601 - Message . . . . : Space offset X'00002000' or
X'0000000000000000' is outside
current limit for object RUNIRQ GANGASANI 025107.
Cause . . . . . : A program tried to set a space pointer, tried to
use
storage outside a space, or tried to use an unallocated page in
teraspace.
The space class is X'04'. The space class designates the type of
space:
04-implicit process space for heap identifier
X'00000000' in activation group mark X'0000000000000000'.
At end of the program I have
free(csub_pt); --------- This is failing saying
MCH6902 Escape Message . . . . : The requested heap space
operation is invalid.
Cause . . . . . : The requested
heap space operation is invalid. The heap
space identifier is -1. The
activation group mark is 17. The activation
group mark will be zero if the
heap space is not associated with an
activation group. The error type
is 2.
0002-Attempt to free or reallocate heap
space storage that is not allocated; The heap space identifier and
activation
group mark may not be valid for
this error type;
So Decided to comment this like... but who will free up the memory
allocated by the malloc.
Could you guys please help on this.
-----Original Message-----
From: Gangasani, Bhargava
Sent: Wednesday, May 26, 2010 4:17 PM
To: 'Pushpakar.Bhumavenkatasai@xxxxxxxxxxx'
Subject: see this man
<< File: tttt.txt >>
2009 Winner: Broadridge receives ?Top Overall Honors" for 2 consecutive years in the Black Book of Outsourcing Brokerage Process Service Provider Survey. Learn more at
http://www.broadridge.com/ranked1/
?THANK GOD IT?S MONDAY!? Sounds interesting? Know more @ www.broadridge.com.
This message and any attachments are intended only for the use of the addressee and
may contain information that is privileged and confidential. If the reader of the
message is not the intended recipient or an authorized representative of the
intended recipient, you are hereby notified that any dissemination of this
communication is strictly prohibited. If you have received this communication in
error, please notify us immediately by e-mail and delete the message and any
attachments from your system.
As an Amazon Associate we earn from qualifying purchases.