forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Some more VS2005 issues

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
acw



Joined: 04 Nov 2005
Posts: 165
Location: Darkest Devon

PostPosted: Tue Dec 12, 2006 1:27 pm    Post subject: Some more VS2005 issues Reply with quote

A couple of issues I have found when using the win32 debugger within VS2005:

1. The behaviour of breakpoint toggling is a bit strange while actively debugging a running program (its fine when setting breakpoints wihtout a program running). Using the mouse or f9, the first click sets the breakpoint as expected, but you need to click twice more to delete the breakpoint - the red dot disappears from the source window on first click, however if you look at the breakpoints window its still there (although the "got to disassembly" button does become disabled !) and when running again, the breakpoint is still hit.

2. As in vs2003, when debugging a program that attempts to bring up a file selection dialog (either via get_selected_file or using win32api directly), the program simply hangs. I realise this is probably a nasty for the debugger.

...

On a positive note though, despite a few problems, the debugger is absolutely fab compared to the vs2003 one which would hang all the time - I can at last debug in visual studio so thanks all...

Alan
Back to top
View user's profile Send private message Visit poster's website
Robert



Joined: 29 Nov 2006
Posts: 445
Location: Manchester

PostPosted: Thu Dec 21, 2006 6:25 pm    Post subject: Reply with quote

Hi Alan

I will take a look at the first point. Do you have an example that illustrates the second point?
Back to top
View user's profile Send private message Visit poster's website
acw



Joined: 04 Nov 2005
Posts: 165
Location: Darkest Devon

PostPosted: Thu Jan 04, 2007 9:59 am    Post subject: Reply with quote

The following win32 program runs okay normally, but if you attempt to debug using Visual Studio the program hangs within get_filtered_file@ without bringing up the file open dialog. (2003 or 2005). It works okay when using sdbg. It hangs somewhere within ntdll.dll.

Alan

! Demonstrates how Win32 debugger in Visual Studio (2003 or 2005) hangs when
! attempting to open file open dialog. This happens when the normal ClearWin
! get_filtered_file@ is used or when the dialog is opened by some other means
! (directly or via a C/C++ DLL)
program TestDebugOpenFile
use mswin

character*260 filename, filepath
character*32 filtname(2), filtspec(2)

filename = ''
filepath = ''
filtname(1) = 'Text Files'
filtname(2) = 'All Files'
filtspec(1)='*.txt'
filtspec(2)='*.*'

call get_filtered_file@('Select Text File', filename, filepath, filtname, filtspec, 2, 1)
end program
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group