I built an application that works 100% ok when I run it in debug mode but
with CTRL-F5.
I changed to deploy and get the System.NotSupportedException message.
I ALSO get the error when I run in debug mode with F5 (not CTRL-F5).
Here is a partial piece of code:

using System;
using System.Drawing;
using System.Windows.Forms;
using System.Data;
using System.Data.SqlServerCe;
using System.Text.RegularExpressions;

namespace NJ5J_CarLog_PocketPC
{
public class formCarLog : System.Windows.Forms.Form
{
public string wrkMaximumMileageStart = "9999991.0";
public string wrkMaximumMileageEnd = "9999999.9";
public decimal maximumMileageStart = 0;
public decimal maximumMileageEnd = 0;
public formCarLog()
{
InitializeComponent();
maximumMileageStart =
System.Convert.ToDecimal(wrkMaximumMileageStart.ToString());

The last instruction above is what gives the exception. I found another
solution on this newsgroup and tried Parse() but it also gives the exception.
Is there a namespace I am omitting? The MSDN help shows that this is
supported in the .Net Compact Framework.
Thanks in advance,
Carl Perkins

RE: System.NotSupportedException - on F5 debug but not on CTRL-F5 by CarlPerkins

CarlPerkins
Wed Feb 16 20:15:02 CST 2005

More info! It has NOTHING to do with System.Convert or Parse() or anything
else.
I put a string xyz = "aaa"; before the system.convert and the string command
debugged out!
It is something esoteric not related to the actual instruction identified.
Geeeeeeeeeeez!
Has anyone encountered this?
It happens right after the InitializeComponent(); is executed.

"Carl Perkins" wrote:

> I built an application that works 100% ok when I run it in debug mode but
> with CTRL-F5.
> I changed to deploy and get the System.NotSupportedException message.
> I ALSO get the error when I run in debug mode with F5 (not CTRL-F5).
> Here is a partial piece of code:
>
> using System;
> using System.Drawing;
> using System.Windows.Forms;
> using System.Data;
> using System.Data.SqlServerCe;
> using System.Text.RegularExpressions;
>
> namespace NJ5J_CarLog_PocketPC
> {
> public class formCarLog : System.Windows.Forms.Form
> {
> public string wrkMaximumMileageStart = "9999991.0";
> public string wrkMaximumMileageEnd = "9999999.9";
> public decimal maximumMileageStart = 0;
> public decimal maximumMileageEnd = 0;
> public formCarLog()
> {
> InitializeComponent();
> maximumMileageStart =
> System.Convert.ToDecimal(wrkMaximumMileageStart.ToString());
>
> The last instruction above is what gives the exception. I found another
> solution on this newsgroup and tried Parse() but it also gives the exception.
> Is there a namespace I am omitting? The MSDN help shows that this is
> supported in the .Net Compact Framework.
> Thanks in advance,
> Carl Perkins

RE: System.NotSupportedException - on F5 debug but not on CTRL-F5 by CarlPerkins

CarlPerkins
Wed Feb 16 20:31:02 CST 2005

OK, problem solved.
It appears that you can only have so many controls within a .net cf
application.
I removed a tab from a tab control and the 3 controls on that tab and now
EVERYTHING works.
What type of a limit am I hitting up against here?
Carl Perkins

"Carl Perkins" wrote:

> I built an application that works 100% ok when I run it in debug mode but
> with CTRL-F5.
> I changed to deploy and get the System.NotSupportedException message.
> I ALSO get the error when I run in debug mode with F5 (not CTRL-F5).
> Here is a partial piece of code:
>
> using System;
> using System.Drawing;
> using System.Windows.Forms;
> using System.Data;
> using System.Data.SqlServerCe;
> using System.Text.RegularExpressions;
>
> namespace NJ5J_CarLog_PocketPC
> {
> public class formCarLog : System.Windows.Forms.Form
> {
> public string wrkMaximumMileageStart = "9999991.0";
> public string wrkMaximumMileageEnd = "9999999.9";
> public decimal maximumMileageStart = 0;
> public decimal maximumMileageEnd = 0;
> public formCarLog()
> {
> InitializeComponent();
> maximumMileageStart =
> System.Convert.ToDecimal(wrkMaximumMileageStart.ToString());
>
> The last instruction above is what gives the exception. I found another
> solution on this newsgroup and tried Parse() but it also gives the exception.
> Is there a namespace I am omitting? The MSDN help shows that this is
> supported in the .Net Compact Framework.
> Thanks in advance,
> Carl Perkins

Re: System.NotSupportedException - on F5 debug but not on CTRL-F5 by ctacke/>

ctacke/>
Wed Feb 16 20:31:36 CST 2005

How big is InitalizeComponent? If you remove some code from it does it run?

-Chris


"Carl Perkins" <CarlPerkins@discussions.microsoft.com> wrote in message
news:FCD5B81B-8232-44A7-B813-0D57828A5C38@microsoft.com...
> More info! It has NOTHING to do with System.Convert or Parse() or
> anything
> else.
> I put a string xyz = "aaa"; before the system.convert and the string
> command
> debugged out!
> It is something esoteric not related to the actual instruction identified.
> Geeeeeeeeeeez!
> Has anyone encountered this?
> It happens right after the InitializeComponent(); is executed.
>
> "Carl Perkins" wrote:
>
>> I built an application that works 100% ok when I run it in debug mode but
>> with CTRL-F5.
>> I changed to deploy and get the System.NotSupportedException message.
>> I ALSO get the error when I run in debug mode with F5 (not CTRL-F5).
>> Here is a partial piece of code:
>>
>> using System;
>> using System.Drawing;
>> using System.Windows.Forms;
>> using System.Data;
>> using System.Data.SqlServerCe;
>> using System.Text.RegularExpressions;
>>
>> namespace NJ5J_CarLog_PocketPC
>> {
>> public class formCarLog : System.Windows.Forms.Form
>> {
>> public string wrkMaximumMileageStart = "9999991.0";
>> public string wrkMaximumMileageEnd = "9999999.9";
>> public decimal maximumMileageStart = 0;
>> public decimal maximumMileageEnd = 0;
>> public formCarLog()
>> {
>> InitializeComponent();
>> maximumMileageStart =
>> System.Convert.ToDecimal(wrkMaximumMileageStart.ToString());
>>
>> The last instruction above is what gives the exception. I found another
>> solution on this newsgroup and tried Parse() but it also gives the
>> exception.
>> Is there a namespace I am omitting? The MSDN help shows that this is
>> supported in the .Net Compact Framework.
>> Thanks in advance,
>> Carl Perkins



Re: System.NotSupportedException - on F5 debug but not on CTRL-F5 by CarlPerkins

CarlPerkins
Wed Feb 16 21:49:03 CST 2005

Ctacke,
THANKS for the suggestion! Here is what I did and it worked!

I went into InitializeComponent() and pulled a LOT of code out and put into
my own method that I execute right after InitializeComponent() and everything
is now working - I did not have to drop any objects!!!
Apparently there is a limit on how many object references can be made in
InitializeComponent().
Thanks,
Carl Perkins

"<ctacke/>" wrote:

> How big is InitalizeComponent? If you remove some code from it does it run?
>
> -Chris
>
>
> "Carl Perkins" <CarlPerkins@discussions.microsoft.com> wrote in message
> news:FCD5B81B-8232-44A7-B813-0D57828A5C38@microsoft.com...
> > More info! It has NOTHING to do with System.Convert or Parse() or
> > anything
> > else.
> > I put a string xyz = "aaa"; before the system.convert and the string
> > command
> > debugged out!
> > It is something esoteric not related to the actual instruction identified.
> > Geeeeeeeeeeez!
> > Has anyone encountered this?
> > It happens right after the InitializeComponent(); is executed.
> >
> > "Carl Perkins" wrote:
> >
> >> I built an application that works 100% ok when I run it in debug mode but
> >> with CTRL-F5.
> >> I changed to deploy and get the System.NotSupportedException message.
> >> I ALSO get the error when I run in debug mode with F5 (not CTRL-F5).
> >> Here is a partial piece of code:
> >>
> >> using System;
> >> using System.Drawing;
> >> using System.Windows.Forms;
> >> using System.Data;
> >> using System.Data.SqlServerCe;
> >> using System.Text.RegularExpressions;
> >>
> >> namespace NJ5J_CarLog_PocketPC
> >> {
> >> public class formCarLog : System.Windows.Forms.Form
> >> {
> >> public string wrkMaximumMileageStart = "9999991.0";
> >> public string wrkMaximumMileageEnd = "9999999.9";
> >> public decimal maximumMileageStart = 0;
> >> public decimal maximumMileageEnd = 0;
> >> public formCarLog()
> >> {
> >> InitializeComponent();
> >> maximumMileageStart =
> >> System.Convert.ToDecimal(wrkMaximumMileageStart.ToString());
> >>
> >> The last instruction above is what gives the exception. I found another
> >> solution on this newsgroup and tried Parse() but it also gives the
> >> exception.
> >> Is there a namespace I am omitting? The MSDN help shows that this is
> >> supported in the .Net Compact Framework.
> >> Thanks in advance,
> >> Carl Perkins
>
>
>

Re: System.NotSupportedException - on F5 debug but not on CTRL-F5 by Daniel

Daniel
Thu Feb 17 04:46:12 CST 2005

> What type of a limit am I hitting up against here?

You are hitting the non-ARM JIT which has a limit of 64K native size per
method. For other differences between the desktop and CF JIT see this:
http://www.danielmoth.com/Blog/2004/12/jit.html

Cheers
Daniel
--
http://www.danielmoth.com/Blog/


"Carl Perkins" <CarlPerkins@discussions.microsoft.com> wrote in message
news:17DEB67F-7AB1-40F0-9E8B-9D469D847937@microsoft.com...
> OK, problem solved.
> It appears that you can only have so many controls within a .net cf
> application.
> I removed a tab from a tab control and the 3 controls on that tab and now
> EVERYTHING works.
> What type of a limit am I hitting up against here?
> Carl Perkins
>
> "Carl Perkins" wrote:
>
>> I built an application that works 100% ok when I run it in debug mode but
>> with CTRL-F5.
>> I changed to deploy and get the System.NotSupportedException message.
>> I ALSO get the error when I run in debug mode with F5 (not CTRL-F5).
>> Here is a partial piece of code:
>>
>> using System;
>> using System.Drawing;
>> using System.Windows.Forms;
>> using System.Data;
>> using System.Data.SqlServerCe;
>> using System.Text.RegularExpressions;
>>
>> namespace NJ5J_CarLog_PocketPC
>> {
>> public class formCarLog : System.Windows.Forms.Form
>> {
>> public string wrkMaximumMileageStart = "9999991.0";
>> public string wrkMaximumMileageEnd = "9999999.9";
>> public decimal maximumMileageStart = 0;
>> public decimal maximumMileageEnd = 0;
>> public formCarLog()
>> {
>> InitializeComponent();
>> maximumMileageStart =
>> System.Convert.ToDecimal(wrkMaximumMileageStart.ToString());
>>
>> The last instruction above is what gives the exception. I found another
>> solution on this newsgroup and tried Parse() but it also gives the
>> exception.
>> Is there a namespace I am omitting? The MSDN help shows that this is
>> supported in the .Net Compact Framework.
>> Thanks in advance,
>> Carl Perkins


Re: System.NotSupportedException - on F5 debug but not on CTRL-F5 by CarlPerkins

CarlPerkins
Thu Feb 17 12:39:02 CST 2005

Daniel,
I love your blog and the fantastic information you have in it!
I have bookmarked it and will reference it frequently.
Thank you for informing me of the 64k limit per method - I had no idea.
Carl Perkins

"Daniel Moth" wrote:

> > What type of a limit am I hitting up against here?
>
> You are hitting the non-ARM JIT which has a limit of 64K native size per
> method. For other differences between the desktop and CF JIT see this:
> http://www.danielmoth.com/Blog/2004/12/jit.html
>
> Cheers
> Daniel
> --
> http://www.danielmoth.com/Blog/
>
>
> "Carl Perkins" <CarlPerkins@discussions.microsoft.com> wrote in message
> news:17DEB67F-7AB1-40F0-9E8B-9D469D847937@microsoft.com...
> > OK, problem solved.
> > It appears that you can only have so many controls within a .net cf
> > application.
> > I removed a tab from a tab control and the 3 controls on that tab and now
> > EVERYTHING works.
> > What type of a limit am I hitting up against here?
> > Carl Perkins
> >
> > "Carl Perkins" wrote:
> >
> >> I built an application that works 100% ok when I run it in debug mode but
> >> with CTRL-F5.
> >> I changed to deploy and get the System.NotSupportedException message.
> >> I ALSO get the error when I run in debug mode with F5 (not CTRL-F5).
> >> Here is a partial piece of code:
> >>
> >> using System;
> >> using System.Drawing;
> >> using System.Windows.Forms;
> >> using System.Data;
> >> using System.Data.SqlServerCe;
> >> using System.Text.RegularExpressions;
> >>
> >> namespace NJ5J_CarLog_PocketPC
> >> {
> >> public class formCarLog : System.Windows.Forms.Form
> >> {
> >> public string wrkMaximumMileageStart = "9999991.0";
> >> public string wrkMaximumMileageEnd = "9999999.9";
> >> public decimal maximumMileageStart = 0;
> >> public decimal maximumMileageEnd = 0;
> >> public formCarLog()
> >> {
> >> InitializeComponent();
> >> maximumMileageStart =
> >> System.Convert.ToDecimal(wrkMaximumMileageStart.ToString());
> >>
> >> The last instruction above is what gives the exception. I found another
> >> solution on this newsgroup and tried Parse() but it also gives the
> >> exception.
> >> Is there a namespace I am omitting? The MSDN help shows that this is
> >> supported in the .Net Compact Framework.
> >> Thanks in advance,
> >> Carl Perkins
>
>

Re: System.NotSupportedException - on F5 debug but not on CTRL-F5 by Daniel

Daniel
Fri Feb 18 18:15:48 CST 2005

Glad I could help and thanks for the nice words.

Cheers
Daniel
--
http://www.danielmoth.com/Blog/


"Carl Perkins" <CarlPerkins@discussions.microsoft.com> wrote in message
news:0837EC8B-1F53-4687-B0EB-95D392A97472@microsoft.com...
> Daniel,
> I love your blog and the fantastic information you have in it!
> I have bookmarked it and will reference it frequently.
> Thank you for informing me of the 64k limit per method - I had no idea.
> Carl Perkins
>
> "Daniel Moth" wrote:
>
>> > What type of a limit am I hitting up against here?
>>
>> You are hitting the non-ARM JIT which has a limit of 64K native size per
>> method. For other differences between the desktop and CF JIT see this:
>> http://www.danielmoth.com/Blog/2004/12/jit.html
>>
>> Cheers
>> Daniel
>> --
>> http://www.danielmoth.com/Blog/
>>
>>
>> "Carl Perkins" <CarlPerkins@discussions.microsoft.com> wrote in message
>> news:17DEB67F-7AB1-40F0-9E8B-9D469D847937@microsoft.com...
>> > OK, problem solved.
>> > It appears that you can only have so many controls within a .net cf
>> > application.
>> > I removed a tab from a tab control and the 3 controls on that tab and
>> > now
>> > EVERYTHING works.
>> > What type of a limit am I hitting up against here?
>> > Carl Perkins
>> >
>> > "Carl Perkins" wrote:
>> >
>> >> I built an application that works 100% ok when I run it in debug mode
>> >> but
>> >> with CTRL-F5.
>> >> I changed to deploy and get the System.NotSupportedException message.
>> >> I ALSO get the error when I run in debug mode with F5 (not CTRL-F5).
>> >> Here is a partial piece of code:
>> >>
>> >> using System;
>> >> using System.Drawing;
>> >> using System.Windows.Forms;
>> >> using System.Data;
>> >> using System.Data.SqlServerCe;
>> >> using System.Text.RegularExpressions;
>> >>
>> >> namespace NJ5J_CarLog_PocketPC
>> >> {
>> >> public class formCarLog : System.Windows.Forms.Form
>> >> {
>> >> public string wrkMaximumMileageStart = "9999991.0";
>> >> public string wrkMaximumMileageEnd = "9999999.9";
>> >> public decimal maximumMileageStart = 0;
>> >> public decimal maximumMileageEnd = 0;
>> >> public formCarLog()
>> >> {
>> >> InitializeComponent();
>> >> maximumMileageStart =
>> >> System.Convert.ToDecimal(wrkMaximumMileageStart.ToString());
>> >>
>> >> The last instruction above is what gives the exception. I found
>> >> another
>> >> solution on this newsgroup and tried Parse() but it also gives the
>> >> exception.
>> >> Is there a namespace I am omitting? The MSDN help shows that this is
>> >> supported in the .Net Compact Framework.
>> >> Thanks in advance,
>> >> Carl Perkins
>>
>>