Bug in HMG 3.1.5 inputbox

Moderator: Rathinagiri

emzampi
Posts: 106
Joined: Sun Aug 11, 2013 9:00 am

Bug in HMG 3.1.5 inputbox

Post by emzampi »

My name is Emanuele and I live in Italy, I admire and use (as an amateur) your project that revives the clipper. Thank you for this vs. job.
That said excuse me for English, and I think you point out an anomaly that reflected in the inputbox command found also examples of hmg 3.1.5 /
samples / function / inputbox / demo. In essence inputbox does not wait for input and in my program this error:
-Date :11-08-2013 Time: 10:47:21
Error: HMG 3.1.5 (31/07/2013)
Not Modal WIndows can not be activated When a modal window is active. graph_66 Program Terminated
Called from _ACTIVATEWINDOW (5187)
Called from MESS (574)
Called from (b) MAIN (147)
Called from _DOCONTROLEVENTPROCEDURE (5545)
Called from EVENTS (1562)
Called from _DOMESSAGELOOP (0)
Called from _ACTIVATEWINDOW (5210)
Called from MAIN (240)

Earlier versions 3.1.4 hmg were OK also on the examples.

thanks
Emanuele
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: Bug in HMG 3.1.5 inputbox

Post by esgici »

emzampi wrote:
My name is Emanuele and I live in Italy, I admire and use (as an amateur) your project that revives the clipper. Thank you for this vs. job.
Ciao Emanuele, benvenuto a bordo :)
...I think you point out an anomaly that reflected in the inputbox command found also examples of hmg 3.1.5 /
samples / function / inputbox / demo. In essence inputbox does not wait for input and in my program this error:...
Most probably this is due to known ( and unique ) problem in new ( 3.1.5 ) release. As cited in this topic by our friends, please look at here.

After commented line 49 in SOURCE\h_windows.prg, please don't forget re-build HMG.3.1.5. Re-building HMG is quite simple: Simply run BuildLib.bat in the root folder of HMG ( C:HMG or C:HMG_3.1.5 or anyhing else depending your setup settings ).

I hope that this will solve your INPUTBOX problem.

Saluti dalla Turchia :)

Happy HMG'ing :D
Viva INTERNATIONAL HMG :D
emzampi
Posts: 106
Joined: Sun Aug 11, 2013 9:00 am

Re: Bug in HMG 3.1.5 inputbox

Post by emzampi »

thanks esgici for both the well came that for the tip that has made reoperation inputbox ..
But the line 49 h_windows is no longer active! You know what it was?
thanks again

Saluti dall' Italia
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: Bug in HMG 3.1.5 inputbox

Post by esgici »

emzampi wrote:thanks esgici for both the well came that for the tip that has made reoperation inputbox ..
But the line 49 h_windows is no longer active! You know what it was?
Sorry, I didn't understood, why it no longer active :?
In my normal installation of HMG_3.1.5 line 49 SOURCE\h_windows.prg was :

Code: Select all

#define ALLOW_ONLY_ONE_MESSAGE_LOOP

after commented ( by putting '*' or "//" to the beginning of that line ) re-builded HMG ( by using BuildLib.bat ) and now INPUTBOX ( and other things) run normal.

If your line 49 SOURCE\h_windows.prg not active, please simply try re-building; probably this will solve your problem.

Happy HMG'ing :D
Viva INTERNATIONAL HMG :D
emzampi
Posts: 106
Joined: Sun Aug 11, 2013 9:00 am

Re: Bug in HMG 3.1.5 inputbox

Post by emzampi »

I changed the line 49 from:

# define ALLOW_ONLY_ONE_MESSAGE_LOOP

to:

/ / # Define ALLOW_ONLY_ONE_MESSAGE_LOOP

and executing the rebuldlib.bat inputbox works :lol: .

My second question was directed to the fact that at this point by adding / / to the command line 49 # define ALLOW_ONLY_ONE_MESSAGE_LOOP this line is made ​​inactive right?

I hope I was clear and sorry for my English.
User avatar
Rathinagiri
Posts: 5480
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Bug in HMG 3.1.5 inputbox

Post by Rathinagiri »

Yes. That line is marked as a remark and it is the directive to the compiler not to compile that line.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
EduardoLuis
Posts: 684
Joined: Tue Jun 04, 2013 6:33 pm
Location: Argentina

Re: Bug in HMG 3.1.5 inputbox

Post by EduardoLuis »

Hi Friends:

As Master's (Dr. Soto & Rati) wrote, line 49 must be commented.-
After that although the user works with ANSI IDE version, when you prompt to choose which IDE want to recompile, you must choose UNICODE.-
I've test selecting recompile ANSI IDE version and grid control functions bad.-
After recompiling choosing UNICO IDE, all works fine.-
So i suggest first recompile ANSI IDE and repeate recompilation with UNICODE IDE.-
In both cases wait (during recompilation) till you recieve on DOS scree "Press any key to continue".-
With regards. Eduardo
User avatar
hmgchang
Posts: 273
Joined: Tue Aug 13, 2013 4:46 am
Location: Indonesia

Re: Bug in HMG 3.1.5 inputbox

Post by hmgchang »

Hi Masters and Friends,
I have added the // line 49, but don't know how to rebuildlib,
pls help and guide me ! thks
Just Hmg It !
User avatar
Rathinagiri
Posts: 5480
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Bug in HMG 3.1.5 inputbox

Post by Rathinagiri »

You can rebuild the library by running buildalllib.bat in the hmg root directory.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
hmgchang
Posts: 273
Joined: Tue Aug 13, 2013 4:46 am
Location: Indonesia

Re: Bug in HMG 3.1.5 inputbox

Post by hmgchang »

Hi All,
Thks to Mr. Rathinagiri
1. I have add // :

Code: Select all

// #define ALLOW_ONLY_ONE_MESSAGE_LOOP


/* 
  The adaptation of the source code of this file to support Unicode was made 
  by Dr. Claudio Soto, November 2012. 
  mail: <srvet@adinet.com.uy>
  blog: http://srvet.blogspot.com
*/

#include "SET_COMPILE_HMG_UNICODE.ch"
2. I have run buildAllLib.bat, first for ANSI until press any key to continue...., second for UNICode until press any key to continue...
3. Then I open the /Samples/Controls/activex/activex.1/demo1.hbp with the IDE, and create the demo1.exe
4. but unfortunately... the inputbox keep running to the next statement...
5. Pls help me since i dont know where have i done wrong....

thks.
Just Hmg It !
Post Reply