473,396 Members | 1,683 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Out of memory during ShowDialog()

Hi,

I dont know what wrong. I have large main form class. At some point i create
new Open File dialog, but when calling ShowDialog - out of memory exception
occurs.

I don't know why.

I figured out that if I call this.hide() - hide main form - and then call
ShowDialog() method of OpenFile - everything works fine.

What's wrong? Anyboby knows?
Please help.

Thanx.

ga**@poczta.onet.pl
Nov 16 '05 #1
4 3587
Gacu,

Add this line, before calling ShowDialog

mTestOpenDialog.InitialDirectory = "c:\"; (or someother directory)
mTestOpenDialog.ShowDialog();

It shld work

Shak.
"Gacu" <ga**@poczta.onet.pl> wrote in message
news:G3******************@news.chello.at...
Hi,

I dont know what wrong. I have large main form class. At some point i create new Open File dialog, but when calling ShowDialog - out of memory exception occurs.

I don't know why.

I figured out that if I call this.hide() - hide main form - and then call
ShowDialog() method of OpenFile - everything works fine.

What's wrong? Anyboby knows?
Please help.

Thanx.

ga**@poczta.onet.pl

Nov 16 '05 #2
Gacu,

Add this line, before calling ShowDialog

mTestOpenDialog.InitialDirectory = "c:\"; (or someother directory)
mTestOpenDialog.ShowDialog();

It shld work

Shak.
"Gacu" <ga**@poczta.onet.pl> wrote in message
news:G3******************@news.chello.at...
Hi,

I dont know what wrong. I have large main form class. At some point i create new Open File dialog, but when calling ShowDialog - out of memory exception occurs.

I don't know why.

I figured out that if I call this.hide() - hide main form - and then call
ShowDialog() method of OpenFile - everything works fine.

What's wrong? Anyboby knows?
Please help.

Thanx.

ga**@poczta.onet.pl

Nov 16 '05 #3
Still it doesn't work :-(

Add this line, before calling ShowDialog

mTestOpenDialog.InitialDirectory = "c:\"; (or someother directory)
mTestOpenDialog.ShowDialog();

It shld work

Shak.


Nov 16 '05 #4
Still it doesn't work :-(

Add this line, before calling ShowDialog

mTestOpenDialog.InitialDirectory = "c:\"; (or someother directory)
mTestOpenDialog.ShowDialog();

It shld work

Shak.


Nov 16 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Vincent | last post by:
Hi I have a problem with pear DB my code : for ($i=0;$i<100000;$i) { $sql = "select id from table where id=x";
2
by: JosR | last post by:
I have a memory problem when running a VB.Net application. The application uses a from frmMain from which another form can be opened: Private Sub OpenTheNewForm() dim frm as New frmSecondform...
8
by: TechCrazy | last post by:
1 int longFunction() { 2 string x1 ("eee"); 3 string x2 = x1; 4 x2 = "fff"; .... Please correct me if any of this is wrong: At the end of line 3, x2 will have some memory M...
0
by: Gacu | last post by:
Hi, I dont know what wrong. I have large main form class. At some point i create new Open File dialog, but when calling ShowDialog - out of memory exception occurs. I don't know why. I...
5
by: SStory | last post by:
Hi all, I really needed to get the icons associated with each file that I want to show in a listview. I used the follow modified code sniplets found on the internet. I have left in...
3
by: Alexander Overmann | last post by:
Hello, currently we encounter several huge memoryproblems running .NET C# Applications under Windows Terminal Servers/Citrix. Sometimes the program claims 100 MB which is not very much at a...
3
by: Jorge | last post by:
Hello. I use the following instructions to create and to show the "forms": Form_Exportar Ficha = new Form_Exportar(); // Project has form_exportar Ficha.ShowDialog(); Ficha.Dispose(); ...
2
by: lolarak_pandey | last post by:
hi, i have written a c# program ,in which i have multiple forms. when i start the application ,the main form opens ,from which iam calling another form using showdialog(this) method. after that...
6
by: Scott Gravenhorst | last post by:
Windows XP SP3 My application is set to open a SaveFile dialog when an exit is requested. When I click the app's close button, the save dialog opens, but when I click to change the folder, the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.