Page 1 of 2

Bug in HMG 3.1.5 inputbox

Posted: Tue Aug 13, 2013 6:48 am
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

Re: Bug in HMG 3.1.5 inputbox

Posted: Tue Aug 13, 2013 9:48 am
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

Re: Bug in HMG 3.1.5 inputbox

Posted: Tue Aug 13, 2013 12:05 pm
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

Re: Bug in HMG 3.1.5 inputbox

Posted: Tue Aug 13, 2013 12:28 pm
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

Re: Bug in HMG 3.1.5 inputbox

Posted: Tue Aug 13, 2013 2:26 pm
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.

Re: Bug in HMG 3.1.5 inputbox

Posted: Tue Aug 13, 2013 2:36 pm
by Rathinagiri
Yes. That line is marked as a remark and it is the directive to the compiler not to compile that line.

Re: Bug in HMG 3.1.5 inputbox

Posted: Wed Aug 14, 2013 12:49 pm
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

Re: Bug in HMG 3.1.5 inputbox

Posted: Fri Sep 20, 2013 3:58 am
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

Re: Bug in HMG 3.1.5 inputbox

Posted: Fri Sep 20, 2013 4:13 am
by Rathinagiri
You can rebuild the library by running buildalllib.bat in the hmg root directory.

Re: Bug in HMG 3.1.5 inputbox

Posted: Fri Sep 20, 2013 4:57 am
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.