Page 1 of 1

The problems of large systems

Posted: Sun Aug 11, 2013 11:47 am
by Eugene Lutsenko
I'm doing a pretty great system. Now its source code is 10 characters Courier in MS Word have a capacity of about 800 sheets. And that's about a fifth of the system.

And I have two problems:

1. If the set of functions from the main menu called from another function it is an error to access text and DBF databases. But if you logout and login again soon launch a second function, everything works fine. Of course, I'm at the end of this function restores the state of the environment at the time of launching the main menu and close all databases. Sometimes it helps, sometimes not. I got the impression that closing some bases need considerable time.

2. Another problem is that when you push the “Cancel” the process is not interrupted. How do the treatment?

I am also very Intress graphics and I'm looking forward to doing something similar Roger xdemo for its graphics functions

Re: The problems of large systems

Posted: Mon Aug 12, 2013 11:06 am
by rdonnay
1. You need to use SET DEFAULT TO <cPath>.
<cPath> should point to the directory that contains your databases.
It may be getting changed in your code somewhere.

WTF Set(_SET_DEFAULT) will report the setting in a debug window.

2. You need to make sure that you are processing events while you are processing.

DCPUSHBUTTON CAPTION 'Cancel' ACTION {||lCancelled := .t.}

DO WHILE !lCancelled

DC_CompleteEvents()

// continue processing
ENDDO

Re: The problems of large systems

Posted: Mon Aug 12, 2013 9:13 pm
by Eugene Lutsenko
Thank you very much!
I base located in many directories on the path that is in the databases in the root directory from which the system is running. After the end of all functions return to this root directory, make it current and restore the state of the database at the time of their launch. This is usually enough, but sometimes errors occur. I will understand more closely based on your recommendations. And on account of interruption of the process I will try. And how are the graphics?

Re: The problems of large systems

Posted: Tue Aug 13, 2013 9:06 am
by rdonnay
I am writing my white paper for the software conference in October.

I will post it here, along with sample programs, prior to the conference.

I decided that it was a waste of my time to create a designer.
The RMCDesigner is a very good tool that already comes with RMChart.
Instead, I am including a section on how to design charts with the RMCDesigner and then use them in eXpress++ applications.

Re: The problems of large systems

Posted: Wed Aug 14, 2013 2:47 am
by Eugene Lutsenko
I guess you're right. Most of all, I have already supported Rmchart, and my problem is that I do not know exactly how supported. I was even more interested not in the designer, and graphics functions with a description and examples of application.

Thank you! With Cancel everything works as it should. In a natural program has made, there are still 28.