public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
From: Fedin Pavel <p.fedin@samsung.com>
To: insight@sourceware.org
Subject: Insight freezes on Windows 7
Date: Fri, 22 Mar 2013 07:23:00 -0000	[thread overview]
Message-ID: <514C06A8.3050102@samsung.com> (raw)

  Hello!

  I am trying to use Insight on Windows 7, and have problems. Under 
certain conditions it freezes and GUI stops responding.
  This happens after you open and close target selection dialog, and 
then do one of the following:
a) Close main window.
b) Call any function which gets reference to Windows HWnd (for example 
"Print setup" dialog), or open "Select file" dialog (File->Open... for 
example).
c) Use 'Connect to target' option with no target set up. In this case it 
opens target selection dialog, then if you cancel it it should open 
MessageBox(), which freezes.

  Using sequential division method i figured out that the problem pops 
up because of port_list TCL function. If you comment it out, the problem 
disappears. More precisely, the problem is caused by the sequence:
if {[catch { set fd [::open COM$i: RDWR] } msg]} { <--- this succeeds
....
close $fd <--- Close the stream.
...
  It's even more strange that if you add for example 'puts "Ok!"' right 
before close call the problem disappears.

  This problem reproduces on all three possible flavours:
1. Cygwin
2. MinGW 32-bit
3. MinGW 64-bit.

  Yes, i have to patch the source in order to build (2) and (3).
  The problem is well reproducible on both last release (from 2009) and 
current CVS code.
  Right now i'm digging into Tcl_FSOpenFileChannel() in order to try to 
understand the true cause of the problem.

  Can anyone give me a hint ? Does anybody run on Win7 too ?

  P.S. Sorry if this is wrong list, i tried to post to insight-pr twice, 
but first time the message was rejected with "do not send spam to us" 
notice, second time with "this is wrong list" notice. I hope this time 
will work.

-- 
  Kind regards
  Pavel Fedin
  Expert engineer, Samsung R&D Institute Rus

             reply	other threads:[~2013-03-22  7:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-22  7:23 Fedin Pavel [this message]
2013-03-22  8:01 Roland Schwingel
2013-03-22  9:33 ` Fedin Pavel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=514C06A8.3050102@samsung.com \
    --to=p.fedin@samsung.com \
    --cc=insight@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).