Hi Sascha,

Thanks for your reply.

I understand, its really very strange and intriguing.

I suspect its the Win32 API,CreateFile, which might cause a problem.
But, I would not judge based on my suspicions.

Anyway, lets hope, an explanation comes up later.


Thanks and Kind Regards,
Anind 




On Oct 28 2011, Sascha Zelzer wrote:

>Hi Anind,
>
>thanks for sharing your solution! This is very strange indeed.
>
>I documented your problem and solution on our wiki:
>
>http://www.mitk.org/wiki/How_to_fix_strange_runtime_errors
>
>Thanks,
>Sascha
>
>On 10/26/2011 06:23 PM, ANIND DUTTAROY wrote:
>>
>> Hi Sascha,
>>
>> This is one bug which I faced – one of the craziest and strangest bugs 
>> on windows, related to Qt, and while running MITK gui.
>>
>> Maybe it can be noted down, for users who faces similar bugs in the 
>> future.
>>
>> *FIRST, THE PROBLEM....*
>>
>> *1.*To make it more clear, the GUI framework has been built exactly 
>> similar to the MITK project template.
>>
>> The GUI exe is NiftyView2  and it sits in a larger project structure.
>>
>> **
>>
>> *2.*The source code and build directory is like this....
>>
>> C:\build\UCLToolkit
>>
>> C:\build\UCLToolkit-Superbuild
>>
>> C:\build\UCLToolkit-Superbuild\UCLToolkit-build
>>
>> with the usual MITK, CTK, ITK, VTK, Qt codes, directories, build 
>> directories etc.
>>
>> It follows pretty standard MITK superbuild structure and uses CMake 
>> and Microsoft Visual Studio 2008 on Windows 7 workstation.
>>
>> *3.*Within C:\build\UCLToolkit- Superbuild\UCLToolkit-build, when
>>
>> StartVS_debug.bat is double-clicked it opens the project code in
>>
>> Microsoft Visual Studio. NiftyView2 is already set up as startup project.
>>
>> I press Ctrl+F5, and NiftyView2 exe runs and the application GUI is 
>> displayed. I
>> can click on “File Open” Or “File save” either in the menu or on their 
>> respective
>>
>> icons to display an image file in the orthoviewer or save the 
>> file/project etc.
>>
>> *4.*However, if I run NiftyView2 by pressing F5 (that is, in Debugging 
>> mode,
>> with or without breakpoints), and click on “File Open” or “File save” 
>> either in the
>> menu or on their respective icons, the whole application crashes, with 
>> a Microsoft
>> Visual Studio dialog stating, *“First-chance exception at [some 
>> hexadecimal address]*
>>
>> *in. NiftyView2.exe: [some hexadecimal address]: An invalid handle was 
>> specified.”*
>>
>> *5.*The call stack is very short with no source code display, and the 
>> debug
>> window arrow points to some line in the Disassembly display.
>>
>> *SECOND, MY STACK TRACE........*
>>
>> ntdll.dll!7739708f()
>>
>> [Frames below may be incorrect and/or missing, no symbols loaded for 
>> ntdll.dll]
>>
>> ntdll.dll!77395a14()
>>
>> KernelBase? 
>> <https://cmicdev.cs.ucl.ac.uk/trac/wiki/KernelBase>.dll!75776b65()
>>
>> KernelBase? 
>> <https://cmicdev.cs.ucl.ac.uk/trac/wiki/KernelBase>.dll!75785376()
>>
>> ntdll.dll!773954d4()
>>
>> KernelBase? 
>> <https://cmicdev.cs.ucl.ac.uk/trac/wiki/KernelBase>.dll!75776b8a()
>>
>> TortoiseSVN.dll!17832aab()
>>
>> TortoiseSVN.dll!17833214()
>>
>> TortoiseSVN.dll!178253e6()
>>
>> *THIRD, Debugging and Research*
>>
>> Also, I tried to debug a bit on my own and I placed break points on 
>> this file and function,
>>
>>  
>>  
>> UCLToolkit-Superbuild/CMakeExternals/Source/MITK/Modules/Bundles/org.mitk.gui.qt.ext/src/QmitkExtFileOpenAction.cpp::Run()
>>
>> and found that the crash occurs at this particular line of code:
>>
>> */QStringList fileNames = QFileDialog::getOpenFileNames(NULL, "Open", 
>> m_LastPath, fileExtensions.c_str() );/*
>>
>> So, when I run NiftyView2 in debugging mode from Visual Studio (by 
>> pressing F5, or
>> by clicking on “Start in Debugging mode”, in the menu) and,
>>
>> then when I click on “File -> Open” in the menu or on the 
>> corresponding icon, the
>>
>> crash occurs in the above mentioned file and code.
>>
>>
>> Similarly, when I run NiftyView2 in debugging mode from Visual Studio 
>> (by pressing
>> F5, or by clicking on “Start in Debugging mode”, in the menu) and,
>>
>> then when I click on “File -> Save Project” in the menu or on the 
>> corresponding
>> icon, the crash occurs in the below mentioned file and code.
>>
>> UCLToolkit-Superbuild 
>> /CMakeExternals/Source/MITK/Modules/Bundles/org.mitk.gui.qt.ext/src/QmitkExtSaveProjectAction.cpp::Run()
>>
>> */QString fileName = QFileDialog::getSaveFileName(NULL, "Save MITK 
>> scene", m_LastPath, "MITK scene files (*.mitk)", NULL );/*
>>
>> *The Solution:-*
>>
>> After researching a lot,I found similar bugs were found in and 
>> recorded in Qt-bug
>> tracker too. There is probably some problem in Win32 APIs, File open 
>> and file save
>> APIs when other exes' and dlls run simultaneously, like in one case 
>> some anti-virus
>>
>> program was running and causing a similar crash.
>>
>> In our case, Tortoise svn dlls were running, as indicated in the stack 
>> trace, so
>> uninstalled and installed new version of Tortoise svn and Tortoise 
>> git, and now the
>> crash has disappeared.
>>
>> *_A similar bug that has been reported in Qt bug tracker_*
>>
>>  
>>  
>> https://bugreports.qt.nokia.com/browse/QTBUG-20303?page=com.atlassian.jira.plugin.system.issuetabpanels%3Achangehistory-tabpanel
>>
>> Thanks and Kind Regards,
>>
>> Anind
>>
>> *From:*Sascha Zelzer [mailto:[email protected]]
>> *Sent:* 18 October 2011 21:42
>> *To:* ANIND DUTTAROY
>> *Cc:* 'mitk-users'
>> *Subject:* Re: [mitk-users] MITK-based GUI crashes on windows in 
>> debugging mode
>>
>> Hi,
>>
>> On 10/14/2011 05:24 PM, ANIND DUTTAROY wrote:
>>
>>
>>
>> How and where do you have to set /Blueberry.consoleLog in Visual Studio?
>>
>> As I wrote, /BlueBerry.consoleLog is a command line argument for the 
>> ExtApp executable. Visual Studio has a option somewhere to add command 
>> line arguments for the projects build configuration.
>>
>> However, looking at your stacktrace below, it probably does not make 
>> sense to use the command line argument above since it seems to be Qt 
>> code which is the source of the problem.
>>
>> Please double-check that you are using a Qt version which is build 
>> with the same compiler and configuration (Debug or Release ...) with 
>> which you are building your project.
>>
>> - Sascha
>>
>>
>> Also, I tried to debug a bit on my own and I placed break points on 
>> this file and function,
>>
>>  
>>  
>> UCLToolkit-SuperBuild/CMakeExternals/Source/MITK/Modules/Bundles/org.mitk.gui.qt.ext/src/QmitkExtFileOpenAction.cpp::Run()
>>
>> and found that the crash occurs at this particular line of code:
>>
>>   QStringList fileNames = QFileDialog::getOpenFileNames(NULL, "Open", 
>> m_LastPath, fileExtensions.c_str() );
>>
>> So, when I run NiftyView2 in debugging mode from Visual Studio (by 
>> pressing F5, or by clicking on “Start in Debugging mode”, in the menu) 
>> and,
>>
>> then when I click on “File -> Open” in the menu or on the corresponding 
>> icon, the crash occurs in the above mentioned file and code.
>>
>> The call stack just before the crash,
>>
>> >             liborg_mitk_gui_qt_ext.dll!QmitkExtFileOpenAction::Run()  
>> Line 104      C++
>>
>>                
>>  
>>  
>> liborg_mitk_gui_qt_ext.dll!QmitkExtFileOpenAction::qt_metacall(QMetaObject::Call
>>  
>> _c=InvokeMetaMethod, int _id=0, void * * _a=0x00acb450) Line 75 C++
>>
>>                QtCored4.dll!QMetaObject::metacall(QObject * 
>> object=0x04e246e0, QMetaObject::Call cl=InvokeMetaMethod, int idx=19, 
>> void * * argv=0x00acb450)  Line 238  C++
>>
>>                QtCored4.dll!QMetaObject::activate(QObject * 
>> sender=0x04e246e0, const QMetaObject * m=0x65d35960, int 
>> local_signal_index=1, void * * argv=0x00acb450)  Line 3278 + 0x27 
>> bytes               C++
>>
>>                QtGuid4.dll!QAction::triggered(bool _t1=false)  Line 
>> 263 + 0x15 bytes     C++
>>
>>                QtGuid4.dll!QAction::activate(QAction::ActionEvent 
>> event=Trigger)  Line 1259   C++
>>
>>                QtGuid4.dll!QAction::trigger()  Line 218 + 0x11 
>> bytes       C++
>>
>>                QtGuid4.dll!QToolButton::nextCheckState()  Line 1148  C++
>>
>>                QtGuid4.dll!QAbstractButtonPrivate::click()  Line 
>> 529      C++
>>
>>                
>> QtGuid4.dll!QAbstractButton::mouseReleaseEvent(QMouseEvent * 
>> e=0x00acbd78)  Line 1122  C++
>>
>>                QtGuid4.dll!QToolButton::mouseReleaseEvent(QMouseEvent 
>> * e=0x00acbd78)  Line 722            C++
>>
>>                QtGuid4.dll!QWidget::event(QEvent * event=0x00acbd78)  
>> Line 8296     C++
>>
>>                QtGuid4.dll!QAbstractButton::event(QEvent * 
>> e=0x00acbd78)  Line 1081              C++
>>
>>                QtGuid4.dll!QToolButton::event(QEvent * 
>> event=0x00acbd78)  Line 1164             C++
>>
>>                QtGuid4.dll!QApplicationPrivate::notify_helper(QObject 
>> * receiver=0x04e2be20, QEvent * e=0x00acbd78)  Line 4481 + 0x11 
>> bytes            C++
>>
>>                QtGuid4.dll!QApplication::notify(QObject * 
>> receiver=0x04e2be20, QEvent * e=0x00acbd78)  Line 4042 + 0x2f 
>> bytes                C++
>>
>>                QtCored4.dll!QCoreApplication::notifyInternal(QObject * 
>> receiver=0x04e2be20, QEvent * event=0x00acbd78)  Line 787 + 0x15 
>> bytes               C++
>>
>>                
>> QtCored4.dll!QCoreApplication::sendSpontaneousEvent(QObject * 
>> receiver=0x04e2be20, QEvent * event=0x00acbd78)  Line 218 + 0x38 
>> bytes           C++
>>
>>                QtGuid4.dll!QApplicationPrivate::sendMouseEvent(QWidget 
>> * receiver=0x04e2be20, QMouseEvent * event=0x00acbd78, QWidget * 
>> alienWidget=0x04e2be20, QWidget * nativeWidget=0x04e29060, QWidget * * 
>> buttonDown=0x65d3724c, QPointer<QWidget> & lastMouseReceiver={...}, 
>> bool spontaneous=true)  Line 3139 + 0xe bytes                C++
>>
>>                QtGuid4.dll!QETWidget::translateMouseEvent(const tagMSG 
>> & msg={...})  Line 3321 + 0x2a bytes            C++
>>
>>                QtGuid4.dll!QtWndProc(HWND__ * hwnd=0x00100408, 
>> unsigned int message=514, unsigned int wParam=0, long lParam=1572907)  
>> Line 1659 + 0xc bytes C++
>>
>>                user32.dll!7592c4e7()
>>
>>                 [Frames below may be incorrect and/or missing, no 
>> symbols loaded for user32.dll]
>>
>>                user32.dll!7592c5e7()
>>
>>                 user32.dll!7592c590()
>>
>>                 user32.dll!7592cc19()
>>
>>                 user32.dll!7592cc70()
>>
>>                 
>> QtCored4.dll!QEventDispatcherWin32::processEvents(QFlags<enum 
>> QEventLoop::ProcessEventsFlag> flags={...})  Line 810                C++
>>
>>                
>> QtGuid4.dll!QGuiEventDispatcherWin32::processEvents(QFlags<enum 
>> QEventLoop::ProcessEventsFlag> flags={...})  Line 1170 + 0x15 bytes   C++
>>
>>                QtCored4.dll!QEventLoop::processEvents(QFlags<enum 
>> QEventLoop::ProcessEventsFlag> flags={...})  Line 150 C++
>>
>>                QtCored4.dll!QEventLoop::exec(QFlags<enum 
>> QEventLoop::ProcessEventsFlag> flags={...})  Line 201 + 0x2d 
>> bytes                C++
>>
>>                QtCored4.dll!QCoreApplication::exec()  Line 1064 + 0x15 
>> bytes  C++
>>
>>                QtGuid4.dll!QApplication::exec()  Line 3756         C++
>>
>>                
>> liborg_blueberry_ui_qt.dll!berry::QtDisplay::RunEventLoop()  Line 46 + 
>> 0x8 bytes            C++
>>
>>                liborg_blueberry_ui.dll!berry::Workbench::RunUI()  Line 
>> 764 + 0x1d bytes           C++
>>
>>                
>>  
>>  
>> liborg_blueberry_ui.dll!berry::Workbench::CreateAndRunWorkbench(berry::Display
>>  
>> * display=0x026d1c80, berry::WorkbenchAdvisor * advisor=0x026d46b8) Line 
>> 191 + 0xb bytes C++
>>
>>                
>>  
>>  
>> liborg_blueberry_ui.dll!berry::PlatformUI::CreateAndRunWorkbench(berry::Display
>>  
>> * display=0x026d1c80, berry::WorkbenchAdvisor * advisor=0x026d46b8) Line 
>> 60 + 0xd bytes C++
>>
>>                
>>  
>>  
>> libuk_ac_ucl_cmic_gui_qt_niftyview.dll!QmitkNiftyViewApplication::Start() 
>> Line 46 + 0x4b bytes C++
>>
>>                liborg_blueberry_osgi.dll!berry::Starter::Run(int & 
>> argc=1, char * * argv=0x024aa158, Poco::Util::AbstractConfiguration * 
>> config=0x024982c0)  Line 168 + 0x15 bytes    C++
>>
>>                NiftyView2.exe!main(int argc=1, char * * 
>> argv=0x024aa158)  Line 55 + 0x17 bytes             C++
>>
>>                NiftyView2.exe!__tmainCRTStartup()  Line 582 + 0x19 
>> bytes       C
>>
>>                NiftyView2.exe!mainCRTStartup()  Line 399        C
>>
>>                kernel32.dll!75fded6c()
>>
>>                 ntdll.dll!773b37f5()
>>
>>                 ntdll.dll!773b37c8()
>>
>> Similarly, when I run NiftyView2 in debugging mode from Visual Studio 
>> (by pressing F5, or by clicking on “Start in Debugging mode”, in the 
>> menu) and,
>>
>> then when I click on “File -> Save Project” in the menu or on the 
>> corresponding icon, the crash occurs in the below mentioned file and 
>> code.
>>
>>  
>>  
>> UCLToolkit-SuperBuild/CMakeExternals/Source/MITK/Modules/Bundles/org.mitk.gui.qt.ext/src/QmitkExtSaveProjectAction.cpp::Run()
>>
>> QString fileName = QFileDialog::getSaveFileName(NULL, "Save MITK 
>> scene", m_LastPath, "MITK scene files (*.mitk)", NULL );
>>
>> The call stack just before the crash,
>>
>> >             
>> liborg_mitk_gui_qt_ext.dll!QmitkExtFileSaveProjectAction::Run()  Line 
>> 57           C++
>>
>>                
>>  
>>  
>> liborg_mitk_gui_qt_ext.dll!QmitkExtFileSaveProjectAction::qt_metacall(QMetaObject::Call
>>  
>> _c=InvokeMetaMethod, int _id=0, void * * _a=0x00b9b98c) Line 75 C++
>>
>>                QtCored4.dll!QMetaObject::metacall(QObject * 
>> object=0x05174e50, QMetaObject::Call cl=InvokeMetaMethod, int idx=19, 
>> void * * argv=0x00b9b98c)  Line 238  C++
>>
>>                QtCored4.dll!QMetaObject::activate(QObject * 
>> sender=0x05174e50, const QMetaObject * m=0x65d35960, int 
>> local_signal_index=1, void * * argv=0x00b9b98c)  Line 3278 + 0x27 
>> bytes               C++
>>
>>                QtGuid4.dll!QAction::triggered(bool _t1=false)  Line 
>> 263 + 0x15 bytes     C++
>>
>>                QtGuid4.dll!QAction::activate(QAction::ActionEvent 
>> event=Trigger)  Line 1259   C++
>>
>>                QtGuid4.dll!QAction::trigger()  Line 218 + 0x11 
>> bytes       C++
>>
>>                QtGuid4.dll!QToolButton::nextCheckState()  Line 1148  C++
>>
>>                QtGuid4.dll!QAbstractButtonPrivate::click()  Line 
>> 529      C++
>>
>>                
>> QtGuid4.dll!QAbstractButton::mouseReleaseEvent(QMouseEvent * 
>> e=0x00b9c2b4)  Line 1122  C++
>>
>>                QtGuid4.dll!QToolButton::mouseReleaseEvent(QMouseEvent 
>> * e=0x00b9c2b4)  Line 722            C++
>>
>>                QtGuid4.dll!QWidget::event(QEvent * event=0x00b9c2b4)  
>> Line 8296     C++
>>
>>                QtGuid4.dll!QAbstractButton::event(QEvent * 
>> e=0x00b9c2b4)  Line 1081              C++
>>
>>                QtGuid4.dll!QToolButton::event(QEvent * 
>> event=0x00b9c2b4)  Line 1164             C++
>>
>>                QtGuid4.dll!QApplicationPrivate::notify_helper(QObject 
>> * receiver=0x0517c180, QEvent * e=0x00b9c2b4)  Line 4481 + 0x11 
>> bytes            C++
>>
>>                QtGuid4.dll!QApplication::notify(QObject * 
>> receiver=0x0517c180, QEvent * e=0x00b9c2b4)  Line 4042 + 0x2f 
>> bytes                C++
>>
>>                QtCored4.dll!QCoreApplication::notifyInternal(QObject * 
>> receiver=0x0517c180, QEvent * event=0x00b9c2b4)  Line 787 + 0x15 
>> bytes               C++
>>
>>                
>> QtCored4.dll!QCoreApplication::sendSpontaneousEvent(QObject * 
>> receiver=0x0517c180, QEvent * event=0x00b9c2b4)  Line 218 + 0x38 
>> bytes           C++
>>
>>                QtGuid4.dll!QApplicationPrivate::sendMouseEvent(QWidget 
>> * receiver=0x0517c180, QMouseEvent * event=0x00b9c2b4, QWidget * 
>> alienWidget=0x0517c180, QWidget * nativeWidget=0x05178d78, QWidget * * 
>> buttonDown=0x65d3724c, QPointer<QWidget> & lastMouseReceiver={...}, 
>> bool spontaneous=true)  Line 3139 + 0xe bytes                C++
>>
>>                QtGuid4.dll!QETWidget::translateMouseEvent(const tagMSG 
>> & msg={...})  Line 3321 + 0x2a bytes            C++
>>
>>                QtGuid4.dll!QtWndProc(HWND__ * hwnd=0x00210708, 
>> unsigned int message=514, unsigned int wParam=0, long lParam=1245302)  
>> Line 1659 + 0xc bytes C++
>>
>>                user32.dll!7592c4e7()
>>
>>                 [Frames below may be incorrect and/or missing, no 
>> symbols loaded for user32.dll]
>>
>>                user32.dll!7592c5e7()
>>
>>                 user32.dll!7592c590()
>>
>>                 user32.dll!7592cc19()
>>
>>                 user32.dll!7592cc70()
>>
>>                 
>> QtCored4.dll!QEventDispatcherWin32::processEvents(QFlags<enum 
>> QEventLoop::ProcessEventsFlag> flags={...})  Line 810                C++
>>
>>                
>> QtGuid4.dll!QGuiEventDispatcherWin32::processEvents(QFlags<enum 
>> QEventLoop::ProcessEventsFlag> flags={...})  Line 1170 + 0x15 bytes   C++
>>
>>                QtCored4.dll!QEventLoop::processEvents(QFlags<enum 
>> QEventLoop::ProcessEventsFlag> flags={...})  Line 150 C++
>>
>>                QtCored4.dll!QEventLoop::exec(QFlags<enum 
>> QEventLoop::ProcessEventsFlag> flags={...})  Line 201 + 0x2d 
>> bytes                C++
>>
>>                QtCored4.dll!QCoreApplication::exec()  Line 1064 + 0x15 
>> bytes  C++
>>
>>                QtGuid4.dll!QApplication::exec()  Line 3756         C++
>>
>>                
>> liborg_blueberry_ui_qt.dll!berry::QtDisplay::RunEventLoop()  Line 46 + 
>> 0x8 bytes            C++
>>
>>                liborg_blueberry_ui.dll!berry::Workbench::RunUI()  Line 
>> 764 + 0x1d bytes           C++
>>
>>                
>>  
>>  
>> liborg_blueberry_ui.dll!berry::Workbench::CreateAndRunWorkbench(berry::Display
>>  
>> * display=0x02731c80, berry::WorkbenchAdvisor * advisor=0x027346b8) Line 
>> 191 + 0xb bytes C++
>>
>>                
>>  
>>  
>> liborg_blueberry_ui.dll!berry::PlatformUI::CreateAndRunWorkbench(berry::Display
>>  
>> * display=0x02731c80, berry::WorkbenchAdvisor * advisor=0x027346b8) Line 
>> 60 + 0xd bytes C++
>>
>>                
>>  
>>  
>> libuk_ac_ucl_cmic_gui_qt_niftyview.dll!QmitkNiftyViewApplication::Start() 
>> Line 46 + 0x4b bytes C++
>>
>>                liborg_blueberry_osgi.dll!berry::Starter::Run(int & 
>> argc=1, char * * argv=0x0250a158, Poco::Util::AbstractConfiguration * 
>> config=0x024f82c0)  Line 168 + 0x15 bytes     C++
>>
>>                NiftyView2.exe!main(int argc=1, char * * 
>> argv=0x0250a158)  Line 55 + 0x17 bytes             C++
>>
>>                NiftyView2.exe!__tmainCRTStartup()  Line 582 + 0x19 
>> bytes       C
>>
>>                NiftyView2.exe!mainCRTStartup()  Line 399        C
>>
>>                kernel32.dll!75fded6c()
>>
>>                 ntdll.dll!773b37f5()
>>
>>                 ntdll.dll!773b37c8()
>>
>> Please suggest.
>>
>> Thanks and Kind Regards,
>>
>> Anind
>>
>> *From:*Sascha Zelzer [mailto:[email protected]]
>> *Sent:* 13 October 2011 17:19
>> *To:* ANIND DUTTAROY
>> *Cc:* 'mitk-users'
>> *Subject:* Re: [mitk-users] MITK-based GUI crashes on windows in 
>> debugging mode
>>
>> Hi Anind,
>>
>> That is indeed a strange stacktrace... you could try to append the 
>> "/BlueBerry.consoleLog" command line argument to your application to 
>> get more diagnostic output and post it.
>>
>> Thanks,
>> Sascha
>>
>> On 10/13/2011 05:27 PM, ANIND DUTTAROY wrote:
>>
>> Hi all,
>>
>> In continuance of my earlier mail, I give the output window display 
>> and stack trace below.
>>
>> FIRST, MY PROBLEM....
>>
>> Has anyone noticed similar issues? I am facing a strange problem on 
>> Windows.
>>
>> 1.To make it more clear, I have a GUI framework built exactly similar 
>> to the MITK project template.
>>
>>                 This GUI framework also has added plugins other than 
>> the already provided MITK example plugins.
>>
>>                 This GUI exe is known as NiftyView2 and it sits in a 
>> larger project structure.
>>
>> 2.My source code and build directory is like this....
>>
>>                 C:\build\SomeName
>>
>>                 C:\build\SomeName-SuperBuild
>>
>>                 C:\build\SomeName-SuperBuild\SomeName-build
>>
>>                 with the usual MITK, CTK, ITK, VTK, Qt codes, 
>> directories, build directories etc.
>>
>>                 It follows pretty standard MITK superbuild structure. 
>> I use CMake and Microsoft Visual Studio 2008 on Windows 7 workstation.
>>
>> 3.Within C:\build\SomeName-SuperBuild\SomeName-build, I double-click 
>> on StartVS_debug.bat and it opens
>>
>> the project code in Microsoft Visual Studio. NiftyView2 is already set 
>> up as startup project.
>>
>> I press Ctrl+F5, and NiftyView2 exe runs and the application GUI is 
>> displayed. I can click on “File Open”
>>
>> Or “File save” either in the menu or on their respective icons to 
>> display an image file in the orthoviewer or
>>
>> save the file/project etc.
>>
>> 4.However, if I run NiftyView2 by pressing F5 (that is, in Debugging 
>> mode, with or without breakpoints),
>>
>> and click on “File Open” or “File save” either in the menu or on their 
>> respective icons, the whole
>>
>> application crashes, with a Microsoft Visual Studio dialog stating,
>>
>> “First-chance exception at [some hexadecimal address] in 
>> NiftyView2.exe: [some hexadecimal address]: An invalid handle was 
>> specified.”
>>
>> 5. The call stack is very short with no source code display, and the 
>> debug window arrow points to some line in the Disassembly display.
>>
>> SECOND, MY STACK TRACE........
>>
>> >             ntdll.dll!7739708f()
>>
>>                 [Frames below may be incorrect and/or missing, no 
>> symbols loaded for ntdll.dll]
>>
>>                ntdll.dll!77395a14()
>>
>>                 KernelBase.dll!75776b65()
>>
>>                 KernelBase.dll!75785376()
>>
>>                 ntdll.dll!773954d4()
>>
>>                 KernelBase.dll!75776b8a()
>>
>>                 TortoiseSVN.dll!17832aab()
>>
>>                 TortoiseSVN.dll!17833214()
>>
>>                 TortoiseSVN.dll!178253e6()
>>
>> THIRD, THE OUTPUT WINDOW DISPLAY...
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\UCLToolkit-build\bin\Debug\NiftyView2.exe', 
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\ntdll.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\kernel32.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\KernelBase.dll'
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\MITK-build\MITK-build\bin\plugins\Debug\liborg_blueberry_osgi.dll',
>>  
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\CTK-build\CTK-build\bin\Debug\CTKPluginFramework.dll',
>>  
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 'C:\Qt\4.7.4\bin\QtSqld4.dll', Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 'C:\Qt\4.7.4\bin\QtCored4.dll', Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\user32.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\gdi32.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\lpk.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\usp10.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\msvcrt.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\ole32.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\rpcrt4.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\advapi32.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\sechost.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\ws2_32.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\nsi.dll'
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\Windows\winsxs\x86_microsoft.vc90.debugcrt_1fc8b3b9a1e18e3b_9.0.21022.8_none_96748342450f6aa2\msvcp90d.dll',
>>  
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\Windows\winsxs\x86_microsoft.vc90.debugcrt_1fc8b3b9a1e18e3b_9.0.21022.8_none_96748342450f6aa2\msvcr90d.dll',
>>  
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\CTK-build\CTK-build\bin\Debug\CTKCore.dll', 
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 'C:\Qt\4.7.4\bin\QtGuid4.dll', Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\comdlg32.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\shlwapi.dll'
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.7601.17514_none_ec83dffa859149af\comctl32.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\shell32.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\oleaut32.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\imm32.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\msctf.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\winmm.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\winspool.drv'
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\MITK-build\MITK-build\bin\Debug\mbilog.dll', 
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\MITK-build\MITK-build\bin\Debug\PocoFoundationd.dll',
>>  
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\IPHLPAPI.DLL'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\winnsi.dll'
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\MITK-build\MITK-build\bin\Debug\PocoUtild.dll',
>>  
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\MITK-build\MITK-build\bin\Debug\PocoXMLd.dll',
>>  
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\MITK-build\MITK-build\bin\Debug\Mitk.dll', 
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\VTK-build\bin\Debug\vtkGraphics.dll', 
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\VTK-build\bin\Debug\vtkFiltering.dll', 
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\VTK-build\bin\Debug\vtkCommon.dll', 
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\VTK-build\bin\Debug\vtksys.dll', 
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\wsock32.dll'
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\VTK-build\bin\Debug\vtkverdict.dll', 
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\VTK-build\bin\Debug\vtkHybrid.dll', 
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\VTK-build\bin\Debug\vtkRendering.dll', 
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\VTK-build\bin\Debug\vtkImaging.dll', 
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\VTK-build\bin\Debug\vtkIO.dll', 
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\VTK-build\bin\Debug\vtkDICOMParser.dll', 
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\VTK-build\bin\Debug\vtkNetCDF.dll', 
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\VTK-build\bin\Debug\vtkNetCDF_cxx.dll', 
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\VTK-build\bin\Debug\vtkmetaio.dll', 
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\VTK-build\bin\Debug\vtkzlib.dll', 
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\VTK-build\bin\Debug\vtkpng.dll', 
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\VTK-build\bin\Debug\vtkjpeg.dll', 
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\VTK-build\bin\Debug\vtktiff.dll', 
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\VTK-build\bin\Debug\vtkexpat.dll', 
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\avifil32.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\msacm32.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\msvfw32.dll'
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\VTK-build\bin\Debug\vtkftgl.dll', 
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\opengl32.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\glu32.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\ddraw.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\dciman32.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\setupapi.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\cfgmgr32.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\devobj.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\dwmapi.dll'
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\VTK-build\bin\Debug\vtkfreetype.dll', 
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\d3d9.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\version.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\d3d8thk.dll'
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\VTK-build\bin\Debug\vtkParallel.dll', 
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\VTK-build\bin\Debug\VPIC.dll', Symbols 
>> loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\VTK-build\bin\Debug\Cosmo.dll', 
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\VTK-build\bin\Debug\vtkexoIIc.dll', 
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\avicap32.dll'
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\VTK-build\bin\Debug\vtkVolumeRendering.dll', 
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\VTK-build\bin\Debug\vtkWidgets.dll', 
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\psapi.dll'
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\GDCM-build\bin\Debug\gdcmMSFF.dll', 
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\GDCM-build\bin\Debug\gdcmIOD.dll', 
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\GDCM-build\bin\Debug\gdcmDSED.dll', 
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\GDCM-build\bin\Debug\gdcmCommon.dll', 
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\GDCM-build\bin\Debug\gdcmzlib.dll', 
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\GDCM-build\bin\Debug\gdcmexpat.dll', 
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\GDCM-build\bin\Debug\gdcmDICT.dll', 
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\GDCM-build\bin\Debug\gdcmjpeg8.dll', 
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\GDCM-build\bin\Debug\gdcmjpeg12.dll', 
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\GDCM-build\bin\Debug\gdcmjpeg16.dll', 
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\GDCM-build\bin\Debug\gdcmopenjpeg.dll', 
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\GDCM-build\bin\Debug\gdcmcharls.dll', 
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\ITK-build\bin\Debug\ITKCommon.dll', 
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\UCLToolkit-build\bin\Debug\ucltkMitkExt.dll',
>>  
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\MITK-build\MITK-build\bin\Debug\MitkExt.dll',
>>  
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\MITK-build\MITK-build\bin\Debug\ImageExtraction.dll',
>>  
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\MITK-build\MITK-build\bin\Debug\PlanarFigure.dll',
>>  
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\MITK-build\MITK-build\bin\Debug\SceneSerializationBase.dll',
>>  
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\MITK-build\MITK-build\bin\Debug\ann.dll', 
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\uxtheme.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\cryptbase.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Qt\4.7.4\plugins\sqldrivers\qsqlpsqld4.dll'
>>
>> 'NiftyView2.exe': Unloaded 
>> 'C:\Qt\4.7.4\plugins\sqldrivers\qsqlpsqld4.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Qt\4.7.4\plugins\sqldrivers\qsqlited4.dll'
>>
>> First-chance exception at 0x7577d36f in NiftyView2.exe: Microsoft C++ 
>> exception: Poco::NotFoundException at memory location 0x00a6d624..
>>
>> First-chance exception at 0x7577d36f in NiftyView2.exe: Microsoft C++ 
>> exception: Poco::PathNotFoundException at memory location 0x00a6d6bc..
>>
>> First-chance exception at 0x7577d36f in NiftyView2.exe: Microsoft C++ 
>> exception: Poco::PathNotFoundException at memory location 0x00a6d6bc..
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\MITK-build\MITK-build\bin\plugins\Debug\liborg_blueberry_compat.dll',
>>  
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\MITK-build\MITK-build\bin\plugins\Debug\liborg_blueberry_core_runtime.dll',
>>  
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\MITK-build\MITK-build\bin\plugins\Debug\liborg_blueberry_solstice_common.dll',
>>  
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\MITK-build\MITK-build\bin\plugins\Debug\liborg_blueberry_core_commands.dll',
>>  
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\MITK-build\MITK-build\bin\plugins\Debug\liborg_blueberry_core_expressions.dll',
>>  
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\MITK-build\MITK-build\bin\plugins\Debug\liborg_blueberry_ui.dll',
>>  
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\MITK-build\MITK-build\bin\plugins\Debug\liborg_mitk_core_services.dll',
>>  
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\MITK-build\MITK-build\bin\plugins\Debug\liborg_mitk_gui_common.dll',
>>  
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\MITK-build\MITK-build\bin\plugins\Debug\liborg_mitk_planarfigure.dll',
>>  
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\MITK-build\MITK-build\bin\Debug\Qmitk.dll', 
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\VTK-build\bin\Debug\QVTK.dll', Symbols 
>> loaded.
>>
>> 'NiftyView2.exe': Loaded 'C:\Qt\4.7.4\bin\QtWebKitd4.dll', Symbols 
>> loaded.
>>
>> 'NiftyView2.exe': Loaded 'C:\Qt\4.7.4\bin\phonond4.dll', Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 'C:\Qt\4.7.4\bin\QtNetworkd4.dll', Symbols 
>> loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\VTK-build\bin\Debug\vtkQtChart.dll', 
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 'C:\Qt\4.7.4\bin\QtOpenGLd4.dll', Symbols 
>> loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\VTK-build\bin\Debug\vtkViews.dll', 
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\VTK-build\bin\Debug\vtkInfovis.dll', 
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\VTK-build\bin\Debug\vtklibxml2.dll', 
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\VTK-build\bin\Debug\vtkalglib.dll', 
>> Symbols loaded.
>>
>> First-chance exception at 0x7577d36f in NiftyView2.exe: Microsoft C++ 
>> exception: Poco::FileNotFoundException at memory location 0x00a6e014..
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\MITK-build\MITK-build\bin\plugins\Debug\liborg_mitk_core_ext.dll',
>>  
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\MITK-build\MITK-build\bin\plugins\Debug\liborg_blueberry_ui_qt.dll',
>>  
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\MITK-build\MITK-build\bin\plugins\Debug\liborg_mitk_gui_qt_common.dll',
>>  
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\MITK-build\MITK-build\bin\plugins\Debug\liborg_mitk_gui_qt_ext.dll',
>>  
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\MITK-build\MITK-build\bin\Debug\QmitkExt.dll',
>>  
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\MITK-build\MITK-build\bin\Debug\qwt.dll', 
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 'C:\Qt\4.7.4\bin\QtSvgd4.dll', Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\MITK-build\MITK-build\bin\Debug\qxt.dll', 
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\MITK-build\MITK-build\bin\Debug\SceneSerialization.dll',
>>  
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\MITK-build\MITK-build\bin\Debug\PocoZipd.dll',
>>  
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\UCLToolkit-build\bin\plugins\Debug\libuk_ac_ucl_cmic_gui_qt_niftyview.dll',
>>  
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\UCLToolkit-build\bin\Debug\ucltkQt.dll', 
>> Symbols loaded.
>>
>> First-chance exception at 0x7577d36f in NiftyView2.exe: Microsoft C++ 
>> exception: Poco::PathNotFoundException at memory location 0x00a6db14..
>>
>> 'NiftyView2.exe': Loaded 'C:\Qt\4.7.4\plugins\imageformats\qgifd4.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Qt\4.7.4\plugins\imageformats\qicod4.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Qt\4.7.4\plugins\imageformats\qjpegd4.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Qt\4.7.4\plugins\imageformats\qmngd4.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Qt\4.7.4\plugins\imageformats\qsvgd4.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Qt\4.7.4\bin\QtXmld4.dll', Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 'C:\Qt\4.7.4\plugins\imageformats\qtiffd4.dll'
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\UCLToolkit-build\bin\plugins\Debug\libuk_ac_ucl_cmic_gui_qt_common.dll',
>>  
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\UCLToolkit-build\bin\Debug\ucltkQmitkExt.dll',
>>  
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\UCLToolkit-build\bin\Debug\ucltkITK.dll', 
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\UCLToolkit-build\bin\Debug\ucltkcommon.dll', 
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\CMakeExternals\Install\BOOST\lib\boost_filesystem-vc90-mt-gd-1_46_1.dll',
>>  
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\CMakeExternals\Install\BOOST\lib\boost_system-vc90-mt-gd-1_46_1.dll',
>>  
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\UCLToolkit-build\bin\plugins\Debug\libuk_ac_ucl_cmic_midasnavigation.dll',
>>  
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\cryptsp.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\rsaenh.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\RpcRtRemote.dll'
>>
>> First-chance exception at 0x7577d36f in NiftyView2.exe: Microsoft C++ 
>> exception: itk::ExceptionObject at memory location 0x00a6b38c..
>>
>> First-chance exception at 0x7577d36f in NiftyView2.exe: Microsoft C++ 
>> exception: itk::ExceptionObject at memory location 0x00a6b360..
>>
>> First-chance exception at 0x7577d36f in NiftyView2.exe: Microsoft C++ 
>> exception: itk::ExceptionObject at memory location 0x00a6b1b0..
>>
>> First-chance exception at 0x7577d36f in NiftyView2.exe: Microsoft C++ 
>> exception: itk::ExceptionObject at memory location 0x00a6b184..
>>
>> First-chance exception at 0x7577d36f in NiftyView2.exe: Microsoft C++ 
>> exception: itk::ExceptionObject at memory location 0x00a6b158..
>>
>> First-chance exception at 0x7577d36f in NiftyView2.exe: Microsoft C++ 
>> exception: itk::ExceptionObject at memory location 0x00a6b12c..
>>
>> First-chance exception at 0x7577d36f in NiftyView2.exe: Microsoft C++ 
>> exception: itk::ExceptionObject at memory location 0x00a6b118..
>>
>> First-chance exception at 0x7577d36f in NiftyView2.exe: Microsoft C++ 
>> exception: itk::ExceptionObject at memory location 0x00a6b0ec..
>>
>> First-chance exception at 0x7577d36f in NiftyView2.exe: Microsoft C++ 
>> exception: itk::ExceptionObject at memory location 0x00a6b118..
>>
>> First-chance exception at 0x7577d36f in NiftyView2.exe: Microsoft C++ 
>> exception: itk::ExceptionObject at memory location 0x00a6b0ec..
>>
>> First-chance exception at 0x7577d36f in NiftyView2.exe: Microsoft C++ 
>> exception: itk::ExceptionObject at memory location 0x00a6b118..
>>
>> First-chance exception at 0x7577d36f in NiftyView2.exe: Microsoft C++ 
>> exception: itk::ExceptionObject at memory location 0x00a6b0ec..
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\MITK-build\MITK-build\bin\plugins\Debug\liborg_mitk_gui_qt_datamanager.dll',
>>  
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\build\UCLToolkit-Superbuild\MITK-build\MITK-build\bin\plugins\Debug\liborg_mitk_gui_qt_imagenavigator.dll',
>>  
>> Symbols loaded.
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\nvoglv32.dll'
>>
>> The thread 'Win32 Thread' (0x1734) has exited with code 0 (0x0).
>>
>> The thread 'Win32 Thread' (0x1738) has exited with code 0 (0x0).
>>
>> The thread 'Win32 Thread' (0x173c) has exited with code 0 (0x0).
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\clbcatq.dll'
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_41e6975e2bd6f2b2\comctl32.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\propsys.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\ntmarta.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\Wldap32.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\profapi.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Program Files\Common Files\microsoft 
>> shared\ink\tiptsf.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\ExplorerFrame.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\duser.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\dui70.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\WindowsCodecs.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\apphelp.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Program Files\Common 
>> Files\TortoiseOverlays\TortoiseOverlays.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Program 
>> Files\TortoiseSVN\bin\TortoiseStub.dll', Binary was not built with 
>> debug information.
>>
>> 'NiftyView2.exe': Loaded 'C:\Program 
>> Files\TortoiseSVN\bin\TortoiseSVN.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\shfolder.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\wininet.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\normaliz.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\iertutil.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\urlmon.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Program 
>> Files\TortoiseSVN\bin\libapr_tsvn.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\mswsock.dll'
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.6161_none_50934f2ebcb7eb57\msvcr90.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Program 
>> Files\TortoiseSVN\bin\libaprutil_tsvn.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Program 
>> Files\TortoiseSVN\bin\intl3_tsvn.dll'
>>
>> 'NiftyView2.exe': Loaded 
>> 'C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.6161_none_50934f2ebcb7eb57\msvcp90.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\crypt32.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\msasn1.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Program 
>> Files\TortoiseGit\bin\TortoiseGit.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Program Files\TortoiseGit\bin\gitdll.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Program Files\TortoiseGit\bin\zlib1.dll', 
>> Binary was not built with debug information.
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\EhStorShell.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\cscui.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\cscdll.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\cscapi.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\xmllite.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\msftedit.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\msls31.dll'
>>
>> 'NiftyView2.exe': Unloaded 'C:\Windows\System32\xmllite.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\xmllite.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\StructuredQuery.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\secur32.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\sspicli.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\actxprxy.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Program Files\Internet Explorer\ieproxy.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\SearchFolder.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\thumbcache.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\shdocvw.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\ieframe.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\oleacc.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\ntshrui.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\srvcli.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\slc.dll'
>>
>> 'NiftyView2.exe': Loaded 'C:\Windows\System32\linkinfo.dll'
>>
>> First-chance exception at 0x7739708f in NiftyView2.exe: 0xC0000008: An 
>> invalid handle was specified.
>>
>> PLEASE LET ME KNOW IF ANYONE REQUIRES ANY MORE INFORMATION.
>>
>> PLEASE HELP/SUGGEST/ADVISE ME.
>>
>> Thanks and Kind Regards,
>>
>> Anind
>>
>> *From:*ANIND DUTTAROY [mailto:[email protected]]
>> *Sent:* 13 October 2011 15:57
>> *To:* 'mitk-users'
>> *Cc:* 'Sascha Zelzer'
>> *Subject:* MITK-based GUI crashes on windows in debugging mode
>>
>> Hi all,
>>
>> Has anyone noticed similar issues? I am facing a strange problem on 
>> Windows.
>>
>> 6.To make it more clear, I have a GUI framework built exactly similar 
>> to the MITK project template.
>>
>>                 This GUI framework also has added plugins other than 
>> the already provided MITK example plugins.
>>
>>                 This GUI exe is known as NiftyView2 and it sits in a 
>> larger project structure.
>>
>> 7.My source code and build directory is like this....
>>
>>                 C:\build\SomeName
>>
>>                 C:\build\SomeName-SuperBuild
>>
>>                 C:\build\SomeName-SuperBuild\SomeName-build
>>
>>                 with the usual MITK, CTK, ITK, VTK, Qt codes, 
>> directories, build directories etc.
>>
>>                 It follows pretty standard MITK superbuild structure. 
>> I use CMake and Microsoft Visual Studio 2008 on Windows 7 workstation.
>>
>> 8.Within C:\build\SomeName-SuperBuild\SomeName-build, I double-click 
>> on StartVS_debug.bat and it opens
>>
>> the project code in Microsoft Visual Studio. NiftyView2 is already set 
>> up as startup project.
>>
>> I press Ctrl+F5, and NiftyView2 exe runs and the application GUI is 
>> displayed. I can click on “File Open”
>>
>> Or “File save” either in the menu or on their respective icons to 
>> display an image file in the orthoviewer or
>>
>> save the file/project etc.
>>
>> 9.However, if I run NiftyView2 by pressing F5 (that is, in Debugging 
>> mode, with or without breakpoints),
>>
>> and click on “File Open” or “File save” either in the menu or on their 
>> respective icons, the whole
>>
>> application crashes, with a Microsoft Visual Studio dialog stating,
>>
>> “First-chance exception at [some hexadecimal address] in 
>> NiftyView2.exe: [some hexadecimal address]: An invalid handle was 
>> specified.”
>>
>> 10. The call stack is very short with no source code display, and the 
>> debug window arrow points to some line in the Disassembly display.
>>
>> Thanks and Kind Regards,
>>
>> Anind
>>
>
>

------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to