Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - Custom container widget crashing Windows hosted PhAB: Page 1 of 4 (4 Items)
   
Custom container widget crashing Windows hosted PhAB  
Hi,

I am trying to create a custom container widget (subclassed from PtContainer) and find that it crashes PhAB when hosted 
under Windows. I'm using QNX 6.5.0 SDP on Windows 7 Pro x64. My target is x86 and for testing I have VirtualBox running 
with QNX installed from the SDP CD.

I have managed to create a custom widget subclassed from PtBasic in the past and have been able to add it, set resources
 and see the live widget display and am following pretty much the same procedure. I could only find cygwin 1.5.25 to 
install, which is different from the one supplied with QNX (1.5.24). It stops me being able to use cygwin's bash at the 
same time as PhAB but I don't know if there any other conflicts.

Now I am trying to create a custom widget subclassed from PtContainer and am going through the help as I do it, but in 
order to get some confidence I have done only the minimum (I think) I need to get a custom container going. I've 
attached the source here but there is basically only 1 new resource, I override the defaults function and no others. 
After I build, make the DLL available on my path and add the definition to PhAB I try to use it. I select "Add Widget 
Class..", which then prompts for the class. Enter that, PhAB finds it as it says it is going to add a widget of class <
name> to my base window and when I click on continue it crashes.

Are there any hints on how to track down what is causing this crash? The output on PhAB's console window doesn't say 
anything. Are there any functions I must provide for a custom container widget?

I know this has no bearing on the correctness of my code but I am able to built the custom widget for my target, add it 
to the self hosted PhAB and use it without crashes. Whether there is some stray error in my widget code that causes 
Windows PhAB to crash but not QNX PhAB I don't know.

Thanks.
Attachment: Compressed file IwcTabGroup.zip 1.55 KB