Bob, > I've got an application that has been running fine for years. Now all > of a sudden, a customer who just upgraded to V5R1 is getting MCH3601 > Pointer not set for location referenced errors. Check that, if being used, the structure for the error_code parameter is zeroed and set properly i.e. the line memset(&err_code, 0, sizeof(err_code)); in the code below; Error_Code_Struct err_code; char msg_key; char tmp_msg_id; char tmp_msg_type; char tmp_to_msgq; memset(&err_code, 0, sizeof(err_code)); /* copy parms to AS/400 API format... */ memcpy(tmp_msg_id, msg_id, sizeof(tmp_msg_id)); memcpy(tmp_msg_type, msg_type, sizeof(tmp_msg_type)); memcpy(tmp_to_msgq, to_msgq, sizeof(tmp_to_msgq)); /* send message... */ QMHSNDPM(tmp_msg_id, "QCPFMSG QSYS ", msg_data, strlen(msg_data), tmp_msg_type, tmp_to_msgq, stack_lvl, msg_key, &err_code);
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.