Re: Sull'errore -4518 (more on TSS hog functions)
Posted in 1995
In article <42f826$nd1@devil.stm.it> mar.greco@agora.stm.it "marco greco" writes: <snip> > Ten days later, with a fresh mind, I discovered that the faulty > code (which, you'll see, was not faulty at all!), a function > declared with no argument (for those of you who have heard of > it, a 4glWorks viewer), was in fact erroneously invoked with a > smallint parm. > > Surprisingly, such call caused no run time error: unlike all > others, 4gl functions that take no arguments *do not* check the > number of parameters received (At least, in 4gl-compiled: I've > peeked at the resulting c code), so if you mistakenly call one > such function with one or more parms, it will run just fine, > leaving all the unwanted parameters on the stack... Those of us in the RDS world know *all* about such problems as RDS *does* check these things! And we have found that this sort of mismatch was the cause of *lots* of totally uninformative messages appearing in our Informix error log! Regards -- ============================================================================ Sally Woolrich | This mail contains my personal sally@excelsis.demon.co.uk | views not those of my employer! ============================================================================