Page 5 of 21

Re: HMG 3.4.4

Posted: Wed Apr 19, 2017 7:44 pm
by Pablo César
You are right.
Thank you Marin for advicing.

Re: HMG 3.4.4

Posted: Tue May 02, 2017 4:40 pm
by salamandra
Thank you very much to all involved directly or indirectly with the development of this wonderful tool.


[]´s Salamandra.

Re: HMG 3.4.4

Posted: Tue May 09, 2017 7:31 am
by mol
I've tested today my application for memory using.
I think, print preview causes memory leak.
I've printed 50 1-page documents on the screen and after every document memory consumption is increasing.

Re: HMG 3.4.4

Posted: Wed May 17, 2017 7:12 pm
by Marin
Hello friends,

Recently I updated my system to Win 10 Creators update 1703.
After the update has been applied, all HMG compilations (3.4.2., 3.4.3 and 3.4.4. EXE-files) produced one and the same error when trying to open an Excel file with the standard (and working with no problems till now) statement of the type for example:
oExcel:Workbooks:Open(fPATH + fXLSXTemplate, .Y.)

All Excel trusted settings have been disabled, so this seems to be not an Excel security issue (conflict).

I also downloaded and ran MS Office Configuration Analyzer Tool but no errors and reccomendations have been given.

And this is one of all HMG-error messages (all are identical):
Date:17/05/2017 Time: 21:53:09
Error WINOLE/1007 Argument error: OPEN (DOS Error -2147467259)
Called from TOLEAUTO:OPEN(0)
Called from PRNFAKTURAKABFN(581)
Called from GETK_RECORD(76)
Called from (b)MAIN(146)
Called from _DOCONTROLEVENTPROCEDURE(6056)
Called from EVENTS(1756)
Called from DOMESSAGELOOP(0)
Called from _ACTIVATEWINDOW(5717)
Called from DOMETHOD(9003)
Called from MAIN(297)

Has anybody encountered a similar problem with any Office component? My Office is ver. 2016.

Regards,
Marin

P.S. As of 21.05.2017: The problem has been solved. Due to any reason the VBA installation has been removed by Win Creators Update. I do not why and how this happened. After installing VBA again, the Excel object model is again at my disposal. No errors more. Sorry for bothering all of you, have a nice day!
Marin

Re: HMG 3.4.4

Posted: Fri May 19, 2017 12:12 pm
by mol
I have a problem with AutoRelease modal window.

I use IDE for develop Form1 as modal with autorelese set to .T.. For some reasons I need to add Browse or Grid to Form1, depends of external circumstances:

Code: Select all

Load window Form1
if lGrid
  define grid Grid1
  parent Form1
  virtual .t.
  ...
  end grid
else
  define browse Grid1
  parent Form1
  ...
  end browse
 endif


//I'm bounding ESC key to release Form1:
ON KEY ESCAPE OF Form1ACTION Form1.Release

//and I activate Form1
activate window Form1
When I close Form1 by X (in upper right corner), Form1 disappear but focus does not return to Main Form and any control of Main Form doesn't work.

When I release Form1 via ESCAPE key, everything works great.

Has sb. observed such a issue of releasing window with mouse and X-close button?


PS. (I've tested it with hmg343 sp2 and works bad, too)

Re: HMG 3.4.4

Posted: Fri May 19, 2017 1:14 pm
by serge_girard
Marek,

It overcomes to me also, sometimes. Don't know when anymore....

Serge

Re: HMG 3.4.4

Posted: Fri May 19, 2017 7:14 pm
by mol
I've prepared working sample with this error. Zipfile contains zlec.dbf for testing grid.

Please test closing window by X button

Download sample from:
http://www.marekolszewski.info/hmg/prob ... window.zip

Re: HMG 3.4.4

Posted: Sat May 20, 2017 6:42 am
by serge_girard
Marek,

After closing Form_1 everything is 'frozen'. Can't move nor close main-window... Very strange indeed.Did you try debugging?

Serge

Re: HMG 3.4.4

Posted: Sat May 20, 2017 6:57 am
by serge_girard
Marek,

Change:
DEFINE WINDOW TEMPLATE AT 165 , 579 WIDTH 550 HEIGHT 375 VIRTUAL WIDTH Nil VIRTUAL HEIGHT Nil TITLE "HMG Testing" MAIN ICON NIL CURSOR NIL ON INIT Nil ON RELEASE Nil ON INTERACTIVECLOSE Nil ON MOUSECLICK Nil ON MOUSEDRAG Nil ON MOUSEMOVE Nil ON SIZE Nil ON MAXIMIZE Nil ON MINIMIZE Nil ON PAINT Nil BACKCOLOR Nil NOTIFYICON NIL NOTIFYTOOLTIP NIL ON NOTIFYCLICK Nil ON GOTFOCUS Nil ON LOSTFOCUS Nil ON SCROLLUP Nil ON SCROLLDOWN Nil ON SCROLLLEFT Nil ON SCROLLRIGHT Nil ON HSCROLLBOX Nil ON VSCROLLBOX Nil


(MAIN after TITLE) in your mainform.fmg and it will work SMOOTHLY!

Serge

Re: HMG 3.4.4

Posted: Sat May 20, 2017 10:26 am
by mol
Thank you!
It must be changed in IDE, because every change in form and saving it will cause this problem.