IDE Blocks Enter key

Moderator: Rathinagiri

User avatar
esgici
Posts: 4324
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 209 times
Been thanked: 76 times
Contact:

IDE Blocks Enter key

Post by esgici » Sun May 31, 2009 12:04 pm

mol wrote:Can somebody do the test:
Press F5 to compile and run project, ant try use ENTER key in another application: eg editor
Tested and confirmed :(

While IDE running in building process, ENTER key doesn't work anywhere, including editors and Windows Explorer, until IDE complete building process.

XP SP2, HMG 2.9.2 ( FTIV), IDE 2.8.6.f

Regards

--

Esgici
Viva INTERNATIONAL HMG :D

User avatar
Roberto Lopez
HMG Founder
Posts: 3897
Joined: Wed Jul 30, 2008 6:43 pm
Has thanked: 13 times
Been thanked: 132 times

Post by Roberto Lopez » Mon Jun 01, 2009 12:11 pm

esgici wrote:
mol wrote:Can somebody do the test:
Press F5 to compile and run project, ant try use ENTER key in another application: eg editor
Tested and confirmed :(

While IDE running in building process, ENTER key doesn't work anywhere, including editors and Windows Explorer, until IDE complete building process.

XP SP2, HMG 2.9.2 ( FTIV), IDE 2.8.6.f

Regards

--

Esgici
Thanks.

I'll review it ASAP.

Regards,

Roberto.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)

User avatar
Roberto Lopez
HMG Founder
Posts: 3897
Joined: Wed Jul 30, 2008 6:43 pm
Has thanked: 13 times
Been thanked: 132 times

Post by Roberto Lopez » Mon Jun 01, 2009 10:44 pm

esgici wrote:
mol wrote:Can somebody do the test:
Press F5 to compile and run project, ant try use ENTER key in another application: eg editor
Tested and confirmed :(

While IDE running in building process, ENTER key doesn't work anywhere, including editors and Windows Explorer, until IDE complete building process.

XP SP2, HMG 2.9.2 ( FTIV), IDE 2.8.6.f

Regards

--

Esgici

And...

The error reported by MOL (List_2 of Win_1 not defined...) appears to be related with this.

If you press [Enter] key in another app during compilation and, when compilation finish, the application is at foreground, that error, arises.

This will be very funny to fix bug :)

Regards,

Roberto.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)

User avatar
esgici
Posts: 4324
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 209 times
Been thanked: 76 times
Contact:

Post by esgici » Mon Jun 01, 2009 11:02 pm

Roberto Lopez wrote:
And...

The error reported by MOL (List_2 of Win_1 not defined...) appears to be related with this.
Very interesting :o

May God give facility to you :!:

Best Regards

--

Esgici
Viva INTERNATIONAL HMG :D

User avatar
Roberto Lopez
HMG Founder
Posts: 3897
Joined: Wed Jul 30, 2008 6:43 pm
Has thanked: 13 times
Been thanked: 132 times

Post by Roberto Lopez » Mon Jun 01, 2009 11:25 pm

esgici wrote:
Roberto Lopez wrote:
And...

The error reported by MOL (List_2 of Win_1 not defined...) appears to be related with this.
Very interesting :o

May God give facility to you :!:

Best Regards

--

Esgici

It appears to be not an IDE bug, but an HMG bug.

The 'guilty' command appears to be EXECUTE ... WAIT used to run a .bat file to build app in IDE.

EXECUTE command calls 'WaitRunPipe' (contribution) function.

Anyway, I should do more tests to be completely sure.

Regards,

Roberto.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)

User avatar
esgici
Posts: 4324
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 209 times
Been thanked: 76 times
Contact:

Post by esgici » Mon Jun 01, 2009 11:33 pm

Hi Maestro

Is there anything we can do; f.e. some specific tests ?

Best Regards

--

Esgici
Viva INTERNATIONAL HMG :D

User avatar
Roberto Lopez
HMG Founder
Posts: 3897
Joined: Wed Jul 30, 2008 6:43 pm
Has thanked: 13 times
Been thanked: 132 times

Post by Roberto Lopez » Mon Jun 01, 2009 11:39 pm

esgici wrote:Hi Maestro

Is there anything we can do; f.e. some specific tests ?

Best Regards

--

Esgici
Yes, of course.

Any sample reproducing the problem as in IDE could be very useful to confirm the bug in EXECUTE command.

Regards,

Roberto.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)

User avatar
esgici
Posts: 4324
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 209 times
Been thanked: 76 times
Contact:

Post by esgici » Tue Jun 02, 2009 3:47 pm

Hi Maestro
Roberto Lopez wrote: Any sample reproducing the problem as in IDE could be very useful to confirm the bug in EXECUTE command.
Sorry, I couldn't found any clue for confirmation :(

But I had succeed reproduce the error in a obscure way :

I have a big ( in source size ) project : up to 40 .prg, 40 .fmg, some .ch files, total up to 29.000 lines.

When issued build command in IDE after resetting project incremental data, the enter key disabled for all applications running and ( after a long building time ) the error occurs :
Date:2009.06.02 Time: 17:07:45
Error: Harbour MiniGUI 2.8.9 (2009.04.30)
Control: LIST_2 Of Win_1 Not defined. Program Terminated
Called from DOMETHOD(7402)
Called from BUILDPROJECT(39502)
Called from (b)HMGMAKE(38895)
Called from _PROCESSINITPROCEDURE(4519)
Called from _ACTIVATEWINDOW(4343)
Called from HMGMAKE(39121)
Called from BUILDPROJECTM(36208)
Called from RUNAPPLICATION(30972)
Called from (b)MAIN(878)
Called from _DOCONTROLEVENTPROCEDURE(4680)
Called from EVENTS(1360)
Called from _DOMESSAGELOOP(0)
Called from _ACTIVATEWINDOW(4322)
Called from MAIN(1297)
This is identical with Marek introduced. And other symptoms are similar : the target .exe builded and running as expected.

The worse is all this symptoms aren't absolute, under some UNDETERMINED conditions; such as other applications running same time with IDE :(

If you want I can send you that project files for testing.

Does this article may give a clue ?

http://support.microsoft.com/kb/933662

Best Regards

--

Esgici
Last edited by esgici on Tue Jun 02, 2009 4:00 pm, edited 1 time in total.
Viva INTERNATIONAL HMG :D

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

Post by mol » Tue Jun 02, 2009 3:57 pm

In my project, saving all forms from IDE was helpful. Try to open and save all forms from IDE.
So, it's strange that program runs well, and IDE runs without errors while incremental compilation, and crashes after full compilation.

User avatar
Roberto Lopez
HMG Founder
Posts: 3897
Joined: Wed Jul 30, 2008 6:43 pm
Has thanked: 13 times
Been thanked: 132 times

Post by Roberto Lopez » Tue Jun 02, 2009 5:08 pm

mol wrote:In my project, saving all forms from IDE was helpful. Try to open and save all forms from IDE.
So, it's strange that program runs well, and IDE runs without errors while incremental compilation, and crashes after full compilation.
I guess I've determined the precise condition to reproduce the problem.

As I've said, it is not IDE specific, but an HMG problem.

When your application reaches EXECUTE...WAIT command and THERE ARE ON KEY definitions active, the HMG appplication will still capturing keys and process it when the EXECUTE...WAIT returns control to the application.

I've fixed IDE, releasing key prior to calling EXECUTE command and call it again later.

Anyway, I'll still researching to fix EXECUTE command.

Regards,

Roberto.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)

Post Reply