Out of memory during ShowDialog()

G

Gacu

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.

(e-mail address removed)
 
S

Shakir Hussain

Gacu,

Add this line, before calling ShowDialog

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

It shld work

Shak.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top