False Program Memory Low Error ?

N

nant15

Hi, I have some problem with my application which i think it is
completely not related to my coding or my design...I was getting
Program Memory Low screen as soon as i try to open the file using the
path stored in my static variable. Here is the sample of it:

I'm using VS2003 and .NETCF SP3, OpenNETCF1.3 in this project

File.OpenText( @"\file.txt" ); //OK
File.OpenText( @"\Program Files\project\file.txt" ); //OK

//Path of the Application, Static
Program.Path = System.IO.Path.GetDirectoryName(
System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase )
+ @"\";

File.OpenText( @"\Program Files\project\file.txt" ); //OK
File.OpenText( Program.Path + "file.txt" ); //?????

As Soon as the Debugger Hit the last line, the emulator shows the
Program Memory Low Page.


Any ideas ?
 
G

Guest

And what is the value of Program.Path at this point? What's the very next
line of code?

-Chris
 

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