And the answer was -- I ASSumed UDT.OPTIONS 88 was on since we have other 'C' code running. Now, if I had executed THAT other "c" code, and then tested this code, it would have worked! But it was not 'on' from Login -- D'Oh!
The weird part is that the C program DOES get called and all variables pass in to it, but it falls over on the 'return' FROM the "c" program. The documentation says that if UDT.OPTIONS 88 is not set to "on" the CALLC would 'fail' -- I assumed it meant on the CALL/front side. My bad! So the fix was simple ... Documented here just in case it ever comes up elsewhere -- -----Original Message----- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of David Wolverton Sent: Thursday, March 22, 2012 7:07 PM To: 'U2 Users List' Subject: [U2] CALLC Question... I've never had this particular issue, and the debugging for CALLC is ... ummmm... sketchy... I call a function using CALLC -- from the logs, I can tell that everything is perfect on the subroutine -- everything I pass in does what it should. However, on exit the UniData (on Windows, 7.2.2) session ALWAYS DIES. The data is not being changed in the 'passed parameters' - so it should be 'good'.... and the function is defined Int funcname(parameters) And the Function is set to exit with return 0; The first field in the "E" pointer is INT, and all the others a CHAR_PTR -- all the parameters are 'inbound' and not changing - and even if they did change, the are CHAR_PTR strings -- should be no big deal... and I can see that the C function is working -- and getting every passed parameter. It is JUST on the 'return 0;' that it fails. Is there a way to 'know' what is causing this? It's just too freaky since everything that 'went out' fine should 'come back' exactly as it left. But I can't think of a way to 'watch' this interface or 'catch' what is going wrong. Thoughts?? _______________________________________________ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users _______________________________________________ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users