Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Setting DialogBar ChildHandle causes crash
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Setting DialogBar ChildHandle causes crash

 Post Reply Post Reply
Author
Message
johnbridges View Drop Down
Newbie
Newbie


Joined: 19 April 2013
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote johnbridges Quote  Post ReplyReply Direct Link To This Post Topic: Setting DialogBar ChildHandle causes crash
    Posted: 19 April 2013 at 1:06pm
Xtreme Command Bars ActiveX 2012 (15.3.1)
Dev Environment VB6 Service Pack 6
Windows 7 both 32 and 64 bit versions

I have an application written in VB6 which utilizes the command bar object to create a ribbon bar menu system. All of this works without a problem but when I attempt to add a DialogBar object my application crashes with the following error:

Run-time error ‘-2147417848 (80010108)
Method ‘ChildHandle’ of object ‘IDialogBar’ failed 

This crash only occurs on 32bit Windows7

Here is a code snippet of where the crash occurs:

Set DialogBarActiveRecords = CommandBars.AddDialogBar("ActiveRecordsGrid", xtpBarRight)
DialogBarActiveRecords.ShowCaption = False
DialogBarActiveRecords.ShowGripper = False
 DialogBarActiveRecords.Closeable = False

DialogBarActiveRecords.ChildHandle = Me.mainPic.hWnd

mainPic  is a standard picture control which contains several other controls. If I remove all controls contained in mainPic the application still crashes.

Any help would be appreciated

Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 09 May 2013 at 11:57am
Are you sure Me.mainPic.hWnd is a valid handle?  Are you sure this PC has SP6 on it?  Please check the handle and ensure its valid.
Back to Top
johnbridges View Drop Down
Newbie
Newbie


Joined: 19 April 2013
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote johnbridges Quote  Post ReplyReply Direct Link To This Post Posted: 09 May 2013 at 12:25pm
Yes me.mainPic.hWnd is a valid handle and the machine in question has SP6 installed. I added a bit more information don't know if you saw it in the issue I submitted. What I added was this:

Our application is MDI based, on the MDI form we align the picture control (mainPic) top, left. It is when the picture control is aligned this way it crashes when setting the dialogbar childhandle property. And this still only affects 32 bit win 7 not sure about win xp.

Thanks



Back to Top
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1354
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post Posted: 09 May 2013 at 1:25pm
I tried the code in VB6 SP6 on Win7 and XP (32-bit only), same version of the controls, and I'm not seeing the error.

Maybe you should try to re-register/re-install the OCX?
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.