ArgumentOutOfRange Exception

T

teo

Hi all,
on my IPAQ pocket pc I have an 'ArgumentOutOfRange Exception'
On the PPC emulator(Visual studio .NET) this exception never appear.
It's hard problem for me catch this exception, I didn't understand the
causes.

So, please let me know how I resolve/debug this proble.

thanks
teo
 
D

Daniel Moth

Start with a breakpoint (followed by step into). If it happens on startup
put it in Application.Run; if it is after a button click put it in the event
handler and so on and so forth.

Cheers
Daniel
 
T

teo

Hello Daniel,
When i copy with active sync my application on IPAQ ppc,
I can't debug with breakpoints and step into.
I used log trace but without success!
I wrote in my previous post that with ppc emulator (VS.NET) I have no
problem.

Cheers
teo.
 
D

Daniel Moth

I read in your previous post that it works in the emulator. That is not as
shocking as you might think. Are you running the same CF version on both
targets? Ensure you have SP3 on both of them:
http://wiki.opennetcf.org/ow.asp?CompactFrameworkFAQ/DeterminingVersion

Also note that the JIT engines are usually different on x86 (emulator) and
ARM (device?). One of the limitations you could be hitting is the maximum
size of a method (typically the InitializeComponent):
http://www.danielmoth.com/Blog/2004/12/jit.html

Instead of copying to the PPC try connecting to it with VS and using
breakpoints as I suggested. Alternatively tracing or using messageboxes is
your only hope of narrowing down the line the exception gets thrown (finding
the offending line of code will lead to the solution).

Without sharing any code there isn't much else anybody can do for you I am
afraid.

Cheers
Daniel
 
T

teo

Hello Daniel,
thanks for your answer.
I'll verify the version above IPAQ and SP.

I'm not sure but this problem is coming when I read on the Network over
802.11b connection to
my Windows 2000 pc that is connected over Lan to Windows 2003 Server.
I can write data to the Server stream - but not read the reverse.
(My desktop win2k is only to connect 802.11b to Lan)
I see that my message reaches toWindows 2003 Server, but I don't receive
answer message.

Cheers
teo.
 

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