TermWaiter.WaitForTerm()

  • Thread starter Thread starter Empi
  • Start date Start date
E

Empi

Hi,

I've just added to one of my projects several bitmaps.

Now, I get a NullReference exception on TermWaiter.WaitForTerm().

The debugger says there's no source code for the error to display.

When I set a breakpoint to try and catch where it happens - it doesn't
happen...

When executing from the PDA by clicking the application it happens once in 5
executes +-.

Can you please help me out ?

Could it be related to some memory limit of the exe? (lots of bitmaps, and
now added on them...).


Thanks,


Empi
 
What is TermWaiter? My guess is that it has a bug in it and you need the
source for it to determine exactly what's causing the null ref, but based on
your description it's likely memory-pressure related.


--

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Giving back to the embedded community
http://community.OpenNETCF.com
 
Hi and thanks.

I wish I knew what it is. It isn't mine...
Looks like a system's function although I find no documented info about it.
Only one guy who met the same problem.

Did a test on which I removed the bitmaps, and it works fine.

What are the known exe limits for CF2.0 ?
Is there a different limit for allocated memory?

Thanks.

Empi
 
It depends on which version of Windows CE you are using. If it's 5.0 or
earlier, then there are rather severe memory limitations.

For Win CE 5.0 you are limited to 32MB of virtual address space per process.

Here is a classic article by Doug Boling on the subject...

http://msdn.microsoft.com/en-us/library/ms836325.aspx

Win CE 6.0 improves things greatly with 1GB of VM space per process.

-Drew
 
Back
Top