Groups | Blog | Home
all groups > c# > june 2004 >

c# : Out of memory during ShowDialog()


Shakir Hussain
6/16/2004 8:50:50 PM
Gacu,

Add this line, before calling ShowDialog

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

It shld work

Shak.


[quoted text, click to view]

Gacu
6/16/2004 11:53:10 PM
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.

gacu@poczta.onet.pl

Gacu
6/17/2004 7:41:51 AM
Still it doesn't work :-(


[quoted text, click to view]


AddThis Social Bookmark Button