Bug Report for Macro Command

Found a bug? Tell us about it here

Moderator: DPlotAdmin

Post Reply
Simon
Posts: 4
Joined: Wed May 11, 2005 4:29 pm

Bug Report for Macro Command

Post by Simon »

When I write a macro to open a file, close that file, and then open a 2nd file, DPlot would crash and exit when opening the 2nd file.

For example:

Code: Select all

FileType(1)
FileOpen("C:\Program Files\DPlot\EX01.GRF")
FileClose()
FileOpen("C:\Program Files\DPlot\EX01.GRF")

Code: Select all

Directory("C:\Program Files\DPlot")
FileType(1)
ForFilesIn("*.grf")
	FileClose()
NextFile
Both example macros above would result in DPlot exiting without warning.

This bug is in the newer version 1.9.9.5 and 1.9.9.7 of the Registered DPlot. I did not try it with an older version of DPlot, nor on the free variant of DPlot.
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post by DPlotAdmin »

Bah. Thanks for pointing out the problem. I haven't got to the bottom of this yet, but have found that if there is one or more open documents at the time you do [FileOpen(...)] that it behaves as expected.

I'll post an update as soon as this is fixed.
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 »

Simon,
I'm not sure how long this error has been in there, but it's fixed now. Thanks again for pointing it out. The quickest way to get a fix is Help>Check for Updates.
Visualize Your Data
support@dplot.com
Simon
Posts: 4
Joined: Wed May 11, 2005 4:29 pm

Thanks

Post by Simon »

It works. Thanks for the quick reply :D
Post Reply