xBrowse:ToExcel() crash in Win7 x86
xBrowse:ToExcel() crash in Win7 x86
Dear Mr. RAO,
Also tried with sample "testxbr3.prg" when exporting to excel but failed or apps hangup.
Installed is MS Office 2003 STD in Win7 Pro x86.
I think the problem is the call "oExcel := ExcelObj()" found in xbrowse.prg (FWH v11.05)
Kind Regards,
Also tried with sample "testxbr3.prg" when exporting to excel but failed or apps hangup.
Installed is MS Office 2003 STD in Win7 Pro x86.
I think the problem is the call "oExcel := ExcelObj()" found in xbrowse.prg (FWH v11.05)
Kind Regards,
Kind Regards,
Frances
Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
Frances
Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
SOLVED: xBrowse:ToExcel() crash in Win7 x86
Dear All,
I found the problem...
I am using xHarbour v1.21.9376 when this problem was first encountered..
When all things considered and seems no alternative solution.. I WENT BACK to xHarbour v1.21.6714..
The problem was solved.
I found the problem...
I am using xHarbour v1.21.9376 when this problem was first encountered..
When all things considered and seems no alternative solution.. I WENT BACK to xHarbour v1.21.6714..
The problem was solved.
Kind Regards,
Frances
Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
Frances
Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
- nageswaragunupudi
- Posts: 10721
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Been thanked: 8 times
- Contact:
Re: xBrowse:ToExcel() crash in Win7 x86
We had this problem with some versions of xharbour.
I am using xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 9381)
This is the build provided by FiveWin.
This version is working well.
You may try this version, instead of going back to an older version.
I am using xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 9381)
This is the build provided by FiveWin.
This version is working well.
You may try this version, instead of going back to an older version.
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
Re: xBrowse:ToExcel() crash in Win7 x86
nageswaragunupudi wrote:We had this problem with some versions of xharbour.
I am using xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 9381)
This is the build provided by FiveWin.
This version is working well.
You may try this version, instead of going back to an older version.
Dear Mr. RAO,
I have rev.9381 that was downloaded some weeks ago.. but still crashing my app and 'testxbr3.prg..
the datestamp on harbour.exe of rev.9381 is 07/03/2011 03:18am
do you have a quick link to latest xharbour build?
Kind Regards,
Frances
Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
Frances
Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
Re: xBrowse:ToExcel() crash in Win7 x86
By-the-Way,
Im using ADS RDD..
With xharbour 1.21.9381 does not include these files "ace32.lib" and "rddads.lib".. so I used either the rev.6714 or rev.9376
This could be the problem...
ace32.lib and rddads.lib should be updated and included with rev.9381..
Im using ADS RDD..
With xharbour 1.21.9381 does not include these files "ace32.lib" and "rddads.lib".. so I used either the rev.6714 or rev.9376
This could be the problem...
ace32.lib and rddads.lib should be updated and included with rev.9381..
Kind Regards,
Frances
Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
Frances
Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
- nageswaragunupudi
- Posts: 10721
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Been thanked: 8 times
- Contact:
Re: xBrowse:ToExcel() crash in Win7 x86
nageswaragunupudi wrote:http://forums.fivetechsupport.com/viewtopic.php?f=17&t=21875
We need to build our own rddads
Can you post the steps please..
Kind Regards,
Frances
Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
Frances
Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
-
- Posts: 465
- Joined: Sun Oct 30, 2005 6:37 am
- Location: Guangzhou(Canton),China
- Contact:
Re: xBrowse:ToExcel() crash in Win7 x86
Yes, on some win7 with problems.for example: excelObj() vs oExcel := GetOleObject( "Excel.Application" ) calls toleauto() class,but harbour 3.0 comes better win_oleauto class, I do not find the source file getoleobject() to replace it win_oleauto class.
Regards!
Shuming Wang
Regards!
Shuming Wang
http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
- nageswaragunupudi
- Posts: 10721
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Been thanked: 8 times
- Contact:
Re: xBrowse:ToExcel() crash in Win7 x86
Mr Wang
If you get this crash, please do this:
In \fwh\samples\olefuncs.prg
modify function FWGetOleObject()
as
If you get this crash, please do this:
In \fwh\samples\olefuncs.prg
modify function FWGetOleObject()
as
Code: Select all | Expand
function FWGetOleObject( cApp )
local oObj
TRY
oObj := TOleAuto():New( cApp )
CATCH
END
return oObj
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
- nageswaragunupudi
- Posts: 10721
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Been thanked: 8 times
- Contact:
Re: xBrowse:ToExcel() crash in Win7 x86
ShumingWang wrote:Yes, on some win7 with problems.for example: excelObj() vs oExcel := GetOleObject( "Excel.Application" ) calls toleauto() class,but harbour 3.0 comes better win_oleauto class, I do not find the source file getoleobject() to replace it win_oleauto class.
Regards!
Shuming Wang
May I know which version of FWH are you using?
Please change the function name GetOleObject in olefuncs.prg as FWGetOleObject and in all its references.
GetOleObject name in olefuncs.prg was clashing with function of the same name in xHarbour
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
Re: xBrowse:ToExcel() crash in Win7 x86
nageswaragunupudi wrote:ShumingWang wrote:Yes, on some win7 with problems.for example: excelObj() vs oExcel := GetOleObject( "Excel.Application" ) calls toleauto() class,but harbour 3.0 comes better win_oleauto class, I do not find the source file getoleobject() to replace it win_oleauto class.
Regards!
Shuming Wang
May I know which version of FWH are you using?
Please change the function name GetOleObject in olefuncs.prg as FWGetOleObject and in all its references.
GetOleObject name in olefuncs.prg was clashing with function of the same name in xHarbour
I'm using FWH v11.05
I will try your suggestion and will post here results..
Thanks again!
Kind Regards,
Frances
Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
Frances
Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
Re: xBrowse:ToExcel() crash in Win7 x86
Dear Mr. RAO,
I tried this:
But apps still crashed in win7 x86..

I tried this:
Code: Select all | Expand
function ExcelObj()
static lInstalled
static oExcel
if !( lInstalled == .f. )
lInstalled := ( ( oExcel := FWGetOleObject( "Excel.Application" ) ) != nil )
endif
return oExcel
But apps still crashed in win7 x86..

Kind Regards,
Frances
Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
Frances
Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
Re: xBrowse:ToExcel() crash in Win7 x86
Dear Mr. RAO,
I modified this:
NOW WORKS WITH xHB1.21.9381 WITHOUT CRASHING...

I modified this:
Code: Select all | Expand
function FWGetOleObject( cApp )
local oObj
TRY
oObj := TOleAuto():New( cApp ) //from GetActiveObject( cApp )
CATCH
TRY
oObj := TOleAuto():New( cApp )
CATCH
END
END
return oObj
NOW WORKS WITH xHB1.21.9381 WITHOUT CRASHING...

Kind Regards,
Frances
Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
Frances
Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
-
- Posts: 465
- Joined: Sun Oct 30, 2005 6:37 am
- Location: Guangzhou(Canton),China
- Contact:
Re: xBrowse:ToExcel() crash in Win7 x86
I modified this: no action nor error alert.
Code:
function FWGetOleObject( cApp )
local oObj
TRY
oObj :=WIN_OleAuto():New( cApp ) //from GetActiveObject( cApp ) , call harbour win_oleauto class (hbwin.lib)
CATCH
TRY
oObj := WIN_OleAuto():New( cApp )
CATCH
END
END
return oObj
Shuming Wang
Code:
function FWGetOleObject( cApp )
local oObj
TRY
oObj :=WIN_OleAuto():New( cApp ) //from GetActiveObject( cApp ) , call harbour win_oleauto class (hbwin.lib)
CATCH
TRY
oObj := WIN_OleAuto():New( cApp )
CATCH
END
END
return oObj
Shuming Wang
http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
- nageswaragunupudi
- Posts: 10721
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Been thanked: 8 times
- Contact: