Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic BoxSelected in Debug Mode (Read 4423 times)
Roel
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 2
Joined: Jan 16th, 2006
BoxSelected in Debug Mode
Jan 16th, 2006 at 10:01am
Print Post  
Hello

I'm trying to set the value the box.text property  as a reaction on a BoxSelected event. Putting a breakpoint  the code an debuging the program,causes a crash of de VB6 runtime.
I can reproduce these behavior in the samplecode.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: BoxSelected in Debug Mode
Reply #1 - Jan 16th, 2006 at 12:55pm
Print Post  
Hi,

I cannot reproduce that. Is there any error code displayed ? Is there anything else in the event handler besides the box.Text assignment ?

Related to displaying text, a crash could occur sometimes if you use a non-proportional font with GDI+. If using the GDI+ engine, make sure the font is either OpenType or TrueType (marked with 'O' or TT' in the VB fonts dialog).

Stoyan
  
Back to top
 
IP Logged
 
Roel
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 2
Joined: Jan 16th, 2006
Re: BoxSelected in Debug Mode
Reply #2 - Jan 16th, 2006 at 1:19pm
Print Post  
Hi,

I've added these codelinse to the sample "Samples\More Drag and Drop\VB"

Private Sub FlowChart1_BoxSelected(ByVal box As FLOWCHARTLibCtl.IBoxItem)
box.Text = "hi di ho"
End Sub

Then inserted a breackpoint at these level

Started VB debugmode.

Inserted 2 objects in  the dialogbox.

Changing the focus between these objects causes a VB assertion.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: BoxSelected in Debug Mode
Reply #3 - Jan 16th, 2006 at 2:07pm
Print Post  
Hi,

I still don't have any luck reproducing this. Does the error happen when not in debug mode ? Is any error code displayed and can you give more details on your OS version and VB service pack level so we test that here in the same environment ?

Thanks,
Stoyan
  
Back to top
 
IP Logged
 
Roeland
Guest


Re: BoxSelected in Debug Mode
Reply #4 - Jan 17th, 2006 at 12:33pm
Print Post  
Hi

OS is Win XP Pro, witch is up to Date. VB6 with Sp5.
The exception " a unhandled exeption in VB.exe(Flowchart.dll):0x00000005: Acces Violation".
The exception seems to be time dependendent.
(a drawing message?).
Sometimes ,waiting a few seconds on a breackpoint produces the exception.

Greetings,
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: BoxSelected in Debug Mode
Reply #5 - Jan 17th, 2006 at 2:24pm
Print Post  
Ok thank you, we have been able to reproduce that. Our developers will see what's wrong tomorrow.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint