Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: Other Features Wishlist and/or Bugs » [BUG] TheIDE hangs when Assist/THISBACKs menu is called in certain files
[BUG] TheIDE hangs when Assist/THISBACKs menu is called in certain files [message #49965] Thu, 07 June 2018 21:12 Go to next message
Oblivion is currently offline  Oblivion
Messages: 1091
Registered: August 2007
Senior Contributor
Hello,

I've tested this on Linux 4.16.13, x86_64, with Theide (latest build), Flags: GUI (Gnome 3.28), MT, SSE2, both DEBUG and RELEASE modes.

Unfortunately I didn't have access to Windows-based machine at the time, so I cannot confirm it on that platform for a while.

TheIDE's callbacks menu doesn't work on certain files. It hangs with constant disk I/O.

Reproducible: always.

Steps to reproduce:
1) Load ide package on TheIDE

2) Open Debug.cpp file.

3) Attempt to open Assist -> THISBACKs menu

Result: TheIDE hangs.


I tracked down the source of problem to Thisbacks.cpp, ln: 120-126 (at first glance it looks like there is a problem with recursion, but I am not sure)

Code seems to be stuck at here (ThisbacksDlg::GatherCallbacks):

	for(int i = 0; i < n.GetCount(); i++) {
		const CppItem& m = n[i];
		if(m.IsData() && !IsCb(m.qtype)
		   && m.natural.Find('&') < 0 && m.natural.Find('*') < 0
		   && m.access <= access
		   && !m.name.StartsWith("dv___"))
			GatherCallbacks(pfx + "." + m.name, done, m.qtype, min(access, (int)PUBLIC));
	}



Edit: Ok, now I can confirm this on Windows too. It is also reproducible under Windows 7/10.

Best regards,
Oblivion


[Updated on: Fri, 08 June 2018 01:19]

Report message to a moderator

Re: [BUG] TheIDE hangs when Assist/THISBACKs menu is called in certain files [message #50029 is a reply to message #49965] Thu, 21 June 2018 12:09 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Hopefully fixed. I have also renamed THISBACK to THISFN. (That said, we might want to have option to produce lambdas there too).
Previous Topic: line number, colunm number and current function ...
Next Topic: Custom script: any way to specify custom error pattern?
Goto Forum:
  


Current Time: Thu Mar 28 13:49:31 CET 2024

Total time taken to generate the page: 0.00988 seconds