16,018,460 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by emcp (Top 10 by date)
emcp
10-May-14 12:45pm
View
try putting the OpenFileDialog in a try catch block.
emcp
10-May-14 12:36pm
View
try Message.ShowDialog("");
emcp
10-May-14 12:34pm
View
Deleted
Instanciating a new dialog will rule out any event you may have added to the dialog. Then it looks like its triggered by the filesystem or display.
emcp
10-May-14 12:28pm
View
You tried reinstanciating, as I said 2 comments back?
Yes .Net is managed, however you can use unmanaged blocks, dllimports, COM, DirectX...
emcp
10-May-14 11:09am
View
You shouldn't be getting this type of exception in managed memory.
So if that didn't work - then are you using any unmanaged objects that are being triggered (as OriginalGriff is indicating).
emcp
10-May-14 10:52am
View
try reinstanciate your dialog:
OpenFileDialog dlgOpen = new OpenFileDialog();
DialogResult dr = dlgOpen.ShowDialog();
emcp
10-May-14 10:06am
View
OpenFileDialog is a built in class, and calling ShowDialog is throwing a memory exception. So making a new project and adding an OpenFileDialog, and calling ShowDialog, will rule out that anything is corrupted.
Otherwise, ensure you are not using a custom OpenFileDialog class.
Then check that the default folder, properties etc.. are not assigned to something that could throw an exception. However that would seem unlikely.
emcp
10-May-14 9:39am
View
Does OpenFileDialog class work in an empty new project?
emcp
10-May-14 9:35am
View
Have you marked the client project as startup: Right-click and "Set as startup Project"?
emcp
10-May-14 9:12am
View
And the types of Minimum and Maximum?
Show More