first use of dplotjr

Found a bug? Tell us about it here

Moderator: DPlotAdmin

Post Reply
simply
Posts: 40
Joined: Mon Sep 25, 2006 1:53 pm

first use of dplotjr

Post by simply »

Hi David,
I Installed a program that use Dplot jr, in Pc.
when the program started for the first time, dplotjr is opened unhidden, and after the first use, it starts normally(hidden).
Even if I uninstall the program, and delete all references to dplotjr in the registry, if I re install the program, i don't have the same probleme!!!

it was tested in 3 systems Vista, XP, and sever 2003.

I use this code(VB) to start Dplot:

Code: Select all

Dim Ret As Long
Ret = DPlot_Start(1, Ret)
________
Last edited by simply on Mon Sep 12, 2011 2:05 pm, edited 2 times in total.
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post by DPlotAdmin »

I'm not getting the same results here, but I think this is likely a problem with the settings file %APPDATA%\DPlot\dplotjr.ini. If you delete the file, then run your program, does the same problem occur? My guess is yes.

One more question: What anti-virus program are you running? The reason I ask is an older version of McAfee I previously used slowed down writing files to %APPDATA% by quite a bit - apparently it thought that folder could be used for something nefarious. If that's what is occurring it could explain the problem - DPlot Jr is maximized by default until you change that setting. But "maximized" and "hidden" don't get along well, so when you try to start the program hidden, DPLOTLIB.DLL writes a line to dplotjr.ini that tells it not to start maximized. It's possible that the file is not updated before dplotjr.exe is started.
Visualize Your Data
support@dplot.com
simply
Posts: 40
Joined: Mon Sep 25, 2006 1:53 pm

Post by simply »

DPlotAdmin wrote:I'm not getting the same results here, but I think this is likely a problem with the settings file %APPDATA%\DPlot\dplotjr.ini. If you delete the file, then run your program, does the same problem occur? My guess is yes.
I deleted the ini file, but the problem didn't occur!!!
DPlotAdmin wrote: One more question: What anti-virus program are you running? The reason I ask is an older version of McAfee I previously used slowed down writing files to %APPDATA% by quite a bit - apparently it thought that folder could be used for something nefarious. If that's what is occurring it could explain the problem - DPlot Jr is maximized by default until you change that setting. But "maximized" and "hidden" don't get along well, so when you try to start the program hidden, DPLOTLIB.DLL writes a line to dplotjr.ini that tells it not to start maximized. It's possible that the file is not updated before dplotjr.exe is started.
I m' not running any antivirus, it's an empty pc, just the operating system, and my program.
________
Last edited by simply on Mon Sep 12, 2011 2:06 pm, edited 2 times in total.
simply
Posts: 40
Joined: Mon Sep 25, 2006 1:53 pm

Post by simply »

simply wrote:
DPlotAdmin wrote:I'm not getting the same results here, but I think this is likely a problem with the settings file dplotjr.ini. If you delete the file, then run your program, does the same problem occur? My guess is yes.
I deleted the ini file, but the problem didn't occur!!!
It occurs, when i delete the path %APPDATA%\DPlot\, not just the ini file.
________
Last edited by simply on Mon Sep 12, 2011 2:06 pm, edited 2 times in total.
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post by DPlotAdmin »

Ah! That's a good catch, thanks.

I'll fix this in the next release.
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 »

I've uploaded new DLL's that correct this problem. The standard stdcall version is available from http://www.dplot.com/lib/dplotlib.dll. The cdecl version is at http://www.dplot.com/lib/dplotlib_cc.dll.

In these versions the %APPDATA%\DPlot folder is created before running dplot.exe or dplotjr.exe if that folder does not already exist.

Thanks for pointing out the problem, and for your good detective work!
Visualize Your Data
support@dplot.com
Post Reply