From: Jerry <lan...@qw...> - 2006-10-27 22:47:09
|
On Oct 25, 2006, at 6:51 PM, Alan W. Irwin wrote: > On 2006-10-25 16:29-0700 Jerry wrote: > >> I have encountered a repeatable problem when using my Ada binding >> to PLplot, >> and I'm wondering if it is something that I've done wrong with the >> binding. > > I suggest the best general approach for debugging a new interface > is to > create or modify a C example to recreate the exact C library > conditions that > are giving you errors for your interface example. Assuming that the > C example works and your interface example does not, that very much > narrows > the source of the problem to either the way you wrote your example > in the > interface language or the programming of the interface itself. > > In any case, for every new interface we strongly encourage making a > complete > set of standard examples following what is done in examples/c. The > postscript result from each C example and the corresponding interface > example should (ideally) be identical (although sometimes there are > single-digit rounding differences). The approach of trying to > mimic the > simplest C examples and gradually moving to the more complicated > ones often > helps to isolate interface issues. > > Also, you might want to try valgrind. That is a great tool for > figuring out > memory management issues (if those happen to be the source of some/ > all of > your difficulties). > > Alan > __________________________ > Alan W. Irwin Problem solved. Operator error. Thanks for your comment. Jerry |