Search found 10 matches

by Peter
Sun Aug 30, 2009 10:26 am
Forum: Suggestions/Questions
Topic: DPlot.exe keeps running...
Replies: 4
Views: 15093

David,
I'll send you the dialog callback function on Monday.

About sending to much data: no way:
the surface is usually a 20x20 array, maximum size is 60x60.

I am calling Dplot_Plot8() about once per second and I monitor
the time of execution of Dplot_Plot8() and it is between 70 -200 ms ...
by Peter
Sat Aug 29, 2009 10:18 am
Forum: Suggestions/Questions
Topic: DPlot.exe keeps running...
Replies: 4
Views: 15093

Actulally I close the file, just like in CTEST2.c I do:

....
if (hbmp) {
DeleteObject(hbmp);
hbmp = 0;
}
if (DocNum) dPlot_Command(DocNum, "[FileClose()]");
DocNum = dPlot_Plot8(&DPlot, extents, Rec3d, szExec);
if (DocNum) {
SetBitmapToFrame();
}
...
return TRUE;



The plots are sent ...
by Peter
Fri Aug 28, 2009 9:54 am
Forum: Suggestions/Questions
Topic: DPlot.exe keeps running...
Replies: 4
Views: 15093

DPlot.exe keeps running...

Hi,

In my application I keep replotting a 3D surface in dialog box as I recalculate it.
I noticed: when I quit my program the DPlot.exe stays on the task manager's process list. (It pops up in there when I start my program up.)

But I noticed that when I start/stop the program several times the ...
by Peter
Wed Aug 26, 2009 7:08 am
Forum: Suggestions/Questions
Topic: Error message question
Replies: 3
Views: 12366

Sorry my mistake. I meant:

if (!DPlotWasActive) {
dPlot_Start(1,&DPlotWasActive);
..
}


and DPlotWasActive is declared as static in dialog box.
But as I mentioned before, I am just doing dPlot_Start once at the beginning of the program and dPlot_Stop when I quit. That works.

As far as the ...
by Peter
Tue Aug 25, 2009 3:57 pm
Forum: Suggestions/Questions
Topic: Error message question
Replies: 3
Views: 12366

I don't know why it happened,
but when I moved the DPlot_Start() etc and DPlot_End() etc,
calls to the WinMain() I have no more errors. (So in start and stop DPlot only once not each time the dialog opened.
Peter
by Peter
Tue Aug 25, 2009 2:17 pm
Forum: Suggestions/Questions
Topic: Error message question
Replies: 3
Views: 12366

Error message question

When I am closing the dialog box I am receiving an error message box
"Error processing this command: Activate (6)"
The number in brackets shows how many times the error condition occured.
The number in the bracket will keep increasing each time I close the
dialog bog and restast it
At start of the ...
by Peter
Mon Aug 24, 2009 1:54 pm
Forum: Suggestions/Questions
Topic: Problem with Surface plot
Replies: 4
Views: 16726

No attachments here, sorry. You're welcome to send files to support@dplot.com if you think it is necessary after this.

It looks to me like your loop limits and the calculation of i aren't correct, should be:

for (r=0;r<Vcell+1;r++) { // rows
for (c=0;c<Hcell+1;c++) { // columns
i = r*(Hcell ...
by Peter
Mon Aug 24, 2009 11:53 am
Forum: Suggestions/Questions
Topic: Problem with Surface plot
Replies: 4
Views: 16726

I wanted to attach a word doc with the two plots - I don't know how....
Peter
by Peter
Mon Aug 24, 2009 11:33 am
Forum: Suggestions/Questions
Topic: A followup Surface plot question
Replies: 1
Views: 8315

A followup Surface plot question

In dPlot_Plot8(&DPlot,extents, z, szExec)
where is defined as double z[MAXNUM], and the 3D array has a dimesion of Nx by Ny,
how exacly the x, y xoordinalte laid out along the 1D z array?
If the z coordinates are represented as (xi,yi) is the layout of the z array is like this:
z = {(0,0), (0,1 ...
by Peter
Mon Aug 24, 2009 9:54 am
Forum: Suggestions/Questions
Topic: Problem with Surface plot
Replies: 4
Views: 16726

Problem with Surface plot

I have a problem with 3D surface display.
My application is a Win32 program . The surface is defined as a 2D matrix with the size of Hcell-by-Vcell The surface height is defined as the value of the matrix elements, the x and y coordinates as the indecies of the matrix elements.
The matrix is stored ...