Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Crash when viewing strings
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Kvasi
New Member

4 Posts

Posted - Nov 23 2007 :  07:59:53 AM  Show Profile  Reply with Quote
Version 1618 & 1619 crashes when string-preview-window appears when mouse hovers over string if the string contains linebreaks.
1561, works fine.

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Nov 23 2007 :  10:01:04 AM  Show Profile  Reply with Quote
Which IDE are you using?
Which programming language are you using?

Is this happening when you are debugging code?

Do you have any other plugin's installed? I would not expect you to see a string preview window, I would only expect you to see a tooltip.

zen is the art of being at one with the two'ness
Go to Top of Page

Kvasi
New Member

4 Posts

Posted - Nov 26 2007 :  02:45:07 AM  Show Profile  Reply with Quote
Visual Studio 2005, SP1.
C.

Yes it's happening when I debug.

Other plugins: DoxyComment
And yes, you're correct, it's the tooltip (the one with a small magnifying glass to the left).
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Nov 26 2007 :  09:22:14 AM  Show Profile  Reply with Quote
How long are the strings you are seeing this problem with?
How many new lines do they contain?
What type is holding the string? I have just tried this with std::string and char * variables and no crashes.

I could be using the "wrong" type, I might need much bigger strings, or I might need to install DoxyComment.

zen is the art of being at one with the two'ness
Go to Top of Page

Kvasi
New Member

4 Posts

Posted - Nov 27 2007 :  04:13:22 AM  Show Profile  Reply with Quote
After some tests this is what I found.
Example code to illustrate crash:

Crashes:

static const char *QUERY =
	"SELECT n1\\n"
	"FROM n"
	;

Does not cause crash:

static const char *QUERY =
	"SELECT n1 "
	"FROM n"
	;

static char *QUERY =
	"SELECT n1\\n"
	"FROM n"
	;

static const char QUERY[] =
	"SELECT n1\\n"
	"FROM n"
	;


Edited by - Kvasi on Nov 27 2007 04:25:12 AM
Go to Top of Page

Dans
Senior Member

Ukraine
45 Posts

Posted - Nov 27 2007 :  07:13:44 AM  Show Profile  Reply with Quote
I have the same problem.
Tooltip with long or specific string kills silently VS 2005 SP1. Looks like stack overflow error.
Go to Top of Page

pjemen
Junior Member

16 Posts

Posted - Nov 27 2007 :  10:04:28 AM  Show Profile  Reply with Quote
It seems to me that this crash occurs only when Apply coloring to tooltips is on. Before it crashes tooltips is flashing.

pj

Edited by - pjemen on Nov 27 2007 10:06:37 AM
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Nov 27 2007 :  11:05:05 AM  Show Profile  Reply with Quote
Kvasi what are you doing to trigger the crash?

I have added this string to a cpp file, added a break point after it, and when the program hits the break point I hover the mouse over the variable "QUERY" to display the tooltip with the value. No crash.

I have installed the latest version of DoxyComment, still no crash.

I have added all 4 of these strings, giving the variables different names, and hovered the mouse over all of them, several times. No crash.

Clearly this problem needs fixing, but it would help if I could reproduce it first.

Dans how easily can you reproduce this?

zen is the art of being at one with the two'ness
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Nov 27 2007 :  11:07:15 AM  Show Profile  Reply with Quote
pjemen I have just double checked, and I have VA set to apply colouring to everything, tooltips included.

It would make sense to me if this problem was tied to a specific string, or a specific size / length of string, or even to a specific project.

Can anyone reproduce this in a new default C++ console project?

zen is the art of being at one with the two'ness
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Nov 27 2007 :  5:34:54 PM  Show Profile  Reply with Quote
pjemen, Dans and Kvasi I have emailed you via the forum about this.

zen is the art of being at one with the two'ness
Go to Top of Page

Dans
Senior Member

Ukraine
45 Posts

Posted - Nov 28 2007 :  04:18:52 AM  Show Profile  Reply with Quote
quote:
Originally posted by feline

pjemen, Dans and Kvasi I have emailed you via the forum about this.



I downloaded new version, results after testing.
Go to Top of Page

pjemen
Junior Member

16 Posts

Posted - Nov 28 2007 :  06:25:39 AM  Show Profile  Reply with Quote
quote:
Originally posted by feline

pjemen, Dans and Kvasi I have emailed you via the forum about this.



I've tested new version.
It doesn't crashed.
I replayed feline's email too.

pj
Go to Top of Page

Dans
Senior Member

Ukraine
45 Posts

Posted - Nov 28 2007 :  3:48:10 PM  Show Profile  Reply with Quote
Crash dissapear
I think you found problem
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000