Subject Re: IDE halts for 1 minute when exiting app
From Ken Mayer <dbase@nospam.goldenstag.net>
Date Tue, 31 Aug 2021 10:34:03 -0700
Newsgroups dbase.getting-started

On 8/31/2021 10:13 AM, Paolo Baranzoni Esseduesoft wrote:
> Il 31/08/2021 18:27, Gaetano D. ha scritto:
>> On 01/09/21 02:02, Paolo Baranzoni Esseduesoft wrote:
>>> I'm trying to build an mdi app following the dBase tutorial.
>>> But when i exit the app and go back to dBase IDE and try to open a
>>> file in the source code editor (or design) then IDE halts for almost
>>> a minute waiting for "i dont know what" and finally opens the source
>>> code editor.
>>> I use dBase2019 on Windows10 pro 64bit.
>>> Attached the four files (but they are almost the same as the tutorial)
>>> Is there something wrong?
>>> Thanks
>>>
>>> Paolo B.
>>>
>> Hi Paulo,
>>
>> How many files are there in that folder?
>>
>> Also, can you check your Windows Task Manager to see if dBase is using
>> a lot of CPU cycles during that time? and check if there are multiple
>> instances of dBase in memory.
>>
>> Ciao,
>>
>
> Ciao Gaetano,
> In that folder there are only those 4 files i attached.
> There is only one instance of dBase in memory.
> The CPU usage is always very low (when i start dBase plus, when i work
> with all the tools of the dBase IDE, when i start the app, when i close
> the app). But when i try to open a file in source code editor after
> exited from the app the CPU usage goes to 30% for 1 minute and the task
> manager writes "waiting for an answer" in the meanwhile.
> I tried even without antivirus but it's the same.
> Of course no problem with 2.62 version (my favourite one).
>
> I have no problem working with the dBase IDE, files always open quickly,
> except after i exit from the app, i have to wait 1 minute, then
> everything goes well, or better i prefere close and reopen dBase, is
> faster.
>
> I have been working with dBase for thirty years (from DBASEIII to
> dBase2019 through VisualDBase and DB2k) and i never had such an issue,
> just with dBase2019.
>
> I have a very big application, builded in all those years, too layered.
> With dBase2019 started some strange behaviours like this so i tried to
> build a new structure from the basic, following the tutorial but the
> same issue started again after few code lines and i cant understand why.

You may want to turn off some of the settings for the source editor, then.

I have had issues with the source editor crashing a lot or working
poorly/slowly if Auto Complete and Code Hints are turned on. In the
Source Editor, go to the menu "Properties", and then select "Source
Editor Properties". In the dialog, uncheck "Auto Complete" and "Code
Hints", click OK. Close dBASE, start it back up, try opening one of the
files that has been slow and see if that solves the problem.

Ken




--
*Ken Mayer*
Ken's dBASE Page: http://www.goldenstag.net/dbase
The dUFLP: http://www.goldenstag.net/dbase/index.htm#duflp
dBASE Books: http://www.goldenstag.net/dbase/Books/dBASEBooks.htm
dBASE Tutorial: http://www.goldenstag.net/dbase/Tutorial/00_Preface.htm
dBASE Web Tutorial: http://www.goldenstag.net/dbase/WebTutorial/00_Menu.htm