PC Review


Reply
Thread Tools Rate Thread

DesignMode ?

 
 
Sonnich Jensen
Guest
Posts: n/a
 
      20th May 2011
Hi

Just found a problem. I accidently created this code:

if (!DesignMode && SaverThread == null)
SaverThread.Something();

which should have been:

if (!DesignMode && SaverThread != null)
SaverThread.Something();

And it caused a stack error in design time. How is that possible?
Shouldn't !DesignTime stop this?
I mean, it runs both, so !DesignTime = false, and that should stop the
IF no matter what. But it does not. Now, I fixed my thread cheking to !
= null, and that stops it for now. But the !DesignMode should do in
the first place anyway, shouldn't it?

Sonnich
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
designMode Hrcko Microsoft C# .NET 1 13th Oct 2006 06:54 PM
Re: DesignMode Robert Liles Microsoft VB .NET 0 18th Sep 2005 05:20 PM
DesignMode help? =?Utf-8?B?V1hT?= Microsoft Dot NET Framework Forms 4 8th Dec 2004 03:23 PM
Using DesignMode in ASP.NET Marcel Balcarek Microsoft ASP .NET 1 12th Nov 2003 07:55 PM
What does the Me.DesignMode Malleier Alfred Microsoft VB .NET 2 27th Aug 2003 10:06 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:23 AM.