Page 2 of 6

Re: MSVS 2012

PostPosted: Sat May 11, 2013 2:07 pm
by Antonio Linares
Richard,

4. Calling a dialog twice in a mdi window crashed the application... had to modify the class and the way to end the window to have it working properly.
5. Still have a problem with a dialog (settings) in a mdi window, closing the dialog, window = OK, come back again enter dialog = crash at validate.... This is the ennoying part related to Harbour, i am not sure the ide's debugger will help us with it.


Could you please provide an example to reproduce it here ? thanks :-)

Re: MSVS 2012

PostPosted: Sun May 12, 2013 1:02 am
by TimStone
Richard,

If it was failing, but is now OK, what did you change or fix ?

Antonio, I know you posted a link to an article on incorporating FWH and Harbour into the MSVS 2012 IDE. I'd be happy to work with that if you can point me in the right direction.

Thanks ... I'm liking this thread.

Its Mother's day tomorrow but I will be back involved on Monday

Tim

Re: MSVS 2012

PostPosted: Sun May 12, 2013 5:09 pm
by Antonio Linares
Richard, Tim,

I got it working! :-)

viewtopic.php?p=144623#p144623

Re: MSVS 2012

PostPosted: Sun May 12, 2013 5:19 pm
by norberto
HI Antonio, very thanks maestro.! :D :) :P

and about make real Windows rt?

thanks
norberto

Re: MSVS 2012

PostPosted: Sun May 12, 2013 8:05 pm
by Antonio Linares

Re: MSVS 2012

PostPosted: Fri May 17, 2013 2:40 pm
by Richard Chidiak
Antonio

Did you get a chance to test the sample i sent you ?

Thank you

Richard

Re: MSVS 2012

PostPosted: Fri May 17, 2013 4:50 pm
by Antonio Linares
Richard,

Do you mean the DLL that Microsoft was refusing to load ?

If so, I think you should contact the DLL developers and ask them to test it with Microsoft VS2010, there is little we can do there as we don't have the source code of the DLL. thanks :-)

Re: MSVS 2012

PostPosted: Fri May 17, 2013 4:56 pm
by Richard Chidiak
Antonio

no it is ok for this one, already fixed.

I mean this

4. Calling a dialog twice in a mdi window crashed the application... had to modify the class and the way to end the window to have it working properly.
5. Still have a problem with a dialog (settings) in a mdi window, closing the dialog, window = OK, come back again enter dialog = crash at validate.... This is the ennoying part related to Harbour, i am not sure the ide's debugger will help us with it.

Could you please provide an example to reproduce it here ? thanks


Richard

Re: MSVS 2012

PostPosted: Fri May 17, 2013 5:59 pm
by Antonio Linares
Richard,

Please test this example. It creates a dialogbox from a main MDI window.

I have tested it with VS2010 and it is working fine. Please let me know if it works fine for you, and/or if you code is different.

Do you mean an embedded dialog into a MDI child ?

Code: Select all  Expand view
#include "FiveWin.ch"

function Main()

   local oWnd

   DEFINE WINDOW oWnd MDI ;
      MENU BuildMenu()

   ACTIVATE WINDOW oWnd MAXIMIZED

return nil

function BuildMenu()

   local oMenu

   MENU oMenu
      MENUITEM "Dialog" ACTION MyDialog()
   ENDMENU

return oMenu

function MyDialog()

   local oDlg

   DEFINE DIALOG oDlg

   ACTIVATE DIALOG oDlg CENTERED

return nil

Re: MSVS 2012

PostPosted: Fri May 17, 2013 6:00 pm
by Antonio Linares
Richard,

Could you please provide an example for your point 5 ? thanks :-)

Re: MSVS 2012

PostPosted: Fri May 17, 2013 6:12 pm
by Richard Chidiak
Antonio

This is the one i sent few days ago :D

I am sending it again

Regards

Richard

Re: MSVS 2012

PostPosted: Fri May 17, 2013 8:59 pm
by Antonio Linares
Richard,

I just sent you an email for a missing file that I need, thanks

Re: MSVS 2012

PostPosted: Sat May 18, 2013 5:18 pm
by Richard Chidiak
Antonio

Thank you for your support

The problem gets fixed with

function hb_gcAll()
return nil

Is it safe to have this function (garbage collector) inside the application ?

As per the exit , i know Tim is concerned , in the method endplan, the following is needed

::oCalexStdDlgs := nil
::oGlbSettings := nil

I can now exit and enter again normally,

Thanks again,

Richard

Re: MSVS 2012

PostPosted: Sun May 19, 2013 6:02 pm
by Antonio Linares
Richard,

We can't replace hb_gcAll(), that was just a test.

Please comment it out and check if the app keeps gpfing in the same place (review the created hb_out.log)

Re: MSVS 2012

PostPosted: Sun May 19, 2013 6:50 pm
by Richard Chidiak
Antonio

Unfortunately it gpf's at the same place when we comment hb_gcall()

Unrecoverable error 6005: Exception error:

Exception Code:C0000005
Exception Address:52F8558D
EAX:7280C91C EBX:00000000 ECX:04BA5A50 EDX:00000000
ESI:014CD5C8 EDI:014CD7D0 EBP:0111DDC0
CS:EIP:0023:52F8558D SS:ESP:002B:0111DDA4
DS:002B ES:002B FS:0053 GS:002B
Flags:00210206
CS:EIP:
SS:ESP: 727FAAC5 70E6A43D 014CD5C8 014CD5C8 0111DDE8 72828F48 00000005 014CD7B0 048AB35D 00000000 014CD5C8 0111DE2C 014CD5D8 00000000 014CD5C8 014CD7B0

Called from HB_GCALL(0)
Called from TDIALOG:END(513) in .\source\classes\DIALOG.PRG
Called from (b)TPLANCJ_PREFCALEX(2237) in C:\CBATI32\PLANNING.PRG
Called from TBUTTON:CLICK(163) in .\source\classes\BUTTON.PRG
Called from TBUTTON:HANDLEEVENT(1678) in .\source\classes\CONTROL.PRG
Called from _FWH(3178) in C:\CBATI32\window.prg
Called from SENDMESSAGE(0)
Called from TDIALOG:COMMAND(380) in .\source\classes\DIALOG.PRG
Called from TWINDOW:HANDLEEVENT(0)
Called from TDIALOG:HANDLEEVENT(887) in .\source\classes\DIALOG.PRG
Called from DIALOGBOX(0)
Called from TDIALOG:ACTIVATE(270) in .\source\classes\DIALOG.PRG


Richard