Guest.Visitor
01-01-1995, 02:00 AM
I have written some CGI scripts in RPGLE for our 150 (OS Ver4.3) but I'm getting 'Error 500 - bad Script Request'. This is very annoying as they were working the day before!! I know the scripts are running and perform several QtmhWrStdOut APIs of the HTML but after the CGI program finishes the Error 500 screen instead of my web page. The job log in QHTTPSVR tells me that: Boundry alignment of pointer or template not valid. (MCH0602) sent from QSYSQC2IFS, Module-QC2IFDOP, Prodedure - fdopen The Call Stack after my CGI is as follows: MyCGI tmhWrStout QtmhWrStout IFS_Write fwrite OpenStdStm fopen freopen ss_freopen fdopen --> this seems to be the failure point. then... ion_router Procedure: _C_exception_router My Directives seem to be fine (the CGI actually runs), also QTMHHTTP & QTMHHTP1 have authority etc... but Boundry alignment not valid. If you have seen this or can figure out whats wrong I would be very grateful. Thanks