HMG 3.4.4

HMG Unicode versions 3.1.x related

Moderator: Rathinagiri

Post Reply
User avatar
Pablo César
Posts: 4058
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 100 times
Been thanked: 177 times

Re: HMG 3.4.4

Post by Pablo César » Wed Apr 19, 2017 7:44 pm

You are right.
Thank you Marin for advicing.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

User avatar
salamandra
Posts: 130
Joined: Thu Jul 31, 2008 8:33 pm
Location: Brazil
Has thanked: 1 time

Post by salamandra » Tue May 02, 2017 4:40 pm

Thank you very much to all involved directly or indirectly with the development of this wonderful tool.


[]´s Salamandra.
There is one time in which is crucial awakening. That time is now. ( Buddha )

User avatar
mol
Posts: 2828
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 118 times
Been thanked: 62 times
Contact:

Post by mol » Tue May 09, 2017 7:31 am

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.

Marin
Posts: 27
Joined: Tue Dec 20, 2016 1:39 pm
DBs Used: DBF
Location: Bulgaria, Sofia
Has thanked: 26 times
Been thanked: 3 times
Contact:

Post by Marin » Wed May 17, 2017 7:12 pm

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
Last edited by Marin on Sun May 21, 2017 10:57 am, edited 1 time in total.

User avatar
mol
Posts: 2828
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 118 times
Been thanked: 62 times
Contact:

Post by mol » Fri May 19, 2017 12:12 pm

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)

User avatar
serge_girard
Posts: 1832
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Has thanked: 273 times
Been thanked: 63 times
Contact:

Post by serge_girard » Fri May 19, 2017 1:14 pm

Marek,

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

Serge

User avatar
mol
Posts: 2828
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 118 times
Been thanked: 62 times
Contact:

Post by mol » Fri May 19, 2017 7:14 pm

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

User avatar
serge_girard
Posts: 1832
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Has thanked: 273 times
Been thanked: 63 times
Contact:

Post by serge_girard » Sat May 20, 2017 6:42 am

Marek,

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

Serge

User avatar
serge_girard
Posts: 1832
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Has thanked: 273 times
Been thanked: 63 times
Contact:

Post by serge_girard » Sat May 20, 2017 6:57 am

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

User avatar
mol
Posts: 2828
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 118 times
Been thanked: 62 times
Contact:

Post by mol » Sat May 20, 2017 10:26 am

Thank you!
It must be changed in IDE, because every change in form and saving it will cause this problem.

Post Reply