Page 1 of 1
Strange behaviour without DocMaximize()
Posted: Thu Apr 22, 2010 5:35 pm
by plazmon
If use first DPlot_plot without command DocMaximize DplotJr behave very strange.
1. It don't show any curves only axis and grid lines, but when switch grid lines or/and box options the curves appear.
2. AddData don't add any data and return undocumented error code: -16393
If use DocMaximize everything work fine.
Posted: Thu Apr 22, 2010 7:05 pm
by DPlotAdmin
That error code is meaningless to me, so I'm not sure what's going on here. If you can send me your application I'm sure that would be helpful.
Posted: Fri Apr 23, 2010 3:45 am
by DPlotAdmin
Andrew,
I'm not sure of the exact source of that error message but will at the very least track that down and either 1) return a meaningful documented error code or 2) prevent the problem that is causing it, which is
not the missing [DocMaximize()] but a bad command string. You're sending a char(0), which tells DPlot_Plot that there
is a command string, but it isn't set up to handle a string of 0 length. If you add
any command or instead send a null pointer in place of that string, your code will work.
Not sure which FORTRAN compiler you're using, but with WATCOM you can do this by sending a NULL_POINTER, where NULL_POINTER is declared as
But none of this will be necessary after the next release. I'll make sure that DPlot_Plot and similar functions check for a 0-length string and ignore it in that case.
Posted: Fri Apr 23, 2010 6:12 am
by plazmon
Hi David!
Yes, the problem is due to incorrect command which I send to DPlot_Plot.
I'm using Intel Fortran. I declare NULL_PTR as
Code: Select all
Character, POINTER :: NULL_PTR
NULLIFY(NULL_PTR)
and pass it to DPlot_Plot. After that everything work fine.
Thank you for you help!