Strange behaviour without DocMaximize()

Found a bug? Tell us about it here

Moderator: DPlotAdmin

Post Reply
plazmon
Posts: 6
Joined: Sat Apr 17, 2010 2:45 am

Strange behaviour without DocMaximize()

Post 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.
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post 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.
Visualize Your Data
support@dplot.com
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post 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

Code: Select all

integer NULL_POINTER(:)
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.
Last edited by DPlotAdmin on Fri Apr 23, 2010 6:16 am, edited 1 time in total.
Visualize Your Data
support@dplot.com
plazmon
Posts: 6
Joined: Sat Apr 17, 2010 2:45 am

Post 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!
Post Reply