Click here to Skip to main content
15,922,574 members
Home / Discussions / C#
   

C#

 
GeneralRe: Process memory, significant addresses Pin
Luc Pattyn25-Feb-08 5:28
sitebuilderLuc Pattyn25-Feb-08 5:28 
GeneralRe: Process memory, significant addresses Pin
Jitse25-Feb-08 5:43
Jitse25-Feb-08 5:43 
GeneralC# Windows Service shutting down Pin
Saamir25-Feb-08 4:04
Saamir25-Feb-08 4:04 
GeneralRead Outlook express - 6 contacts using c# 2005 Pin
Member 4463561 @##$#%$#%*(*&^(&)(_++[25-Feb-08 4:02
Member 4463561 @##$#%$#%*(*&^(&)(_++[25-Feb-08 4:02 
GeneralRe: Read Outlook express - 6 contacts using c# 2005 Pin
Judah Gabriel Himango25-Feb-08 5:54
sponsorJudah Gabriel Himango25-Feb-08 5:54 
GeneralRun time error Pin
Mc_Topaz25-Feb-08 3:57
Mc_Topaz25-Feb-08 3:57 
GeneralRe: Run time error Pin
Judah Gabriel Himango25-Feb-08 5:48
sponsorJudah Gabriel Himango25-Feb-08 5:48 
GeneralRe: Run time error [modified] Pin
Mc_Topaz25-Feb-08 20:23
Mc_Topaz25-Feb-08 20:23 
<br />
 class Variant<br />
    {       <br />
        public enum e_Type<br />
        {<br />
            null_,<br />
            bool_,<br />
            int_,<br />
            float_,<br />
            double_,<br />
            string_<br />
        }<br />
<br />
        e_Type m_type = e_Type.null_;<br />
        public e_Type type() { return m_type; }<br />
<br />
        private bool m_bool = false;<br />
        private int m_int = 0;<br />
        private float m_float = 0;<br />
        private double m_double = 0;<br />
        private string m_string = "";<br />
<br />
       // Event och Delegate<br />
        public delegate void DataChangedDelegate();<br />
        public event DataChangedDelegate DataChanged;<br />
<br />
        public Variant(bool val) { m_type = e_Type.bool_; m_bool = val; DataChanged(); }<br />
<br />
        public static implicit operator Variant(bool val) { Variant V = new Variant(val); return V; }<br />
<br />
        /* ... more code ...*/<br />
    } //end of Variant<br />
<br />


This is the code which contains the event and delgate stuff.

I get the problem when the program comes to "DataChanged();" inside "Variant(bool val)".

If I run this statement, the error occurs as described earlier:
Variant a = true;

If I put a breakpoint at DataChanged();, The debugger reports:
"<this> Cannot obtain value of local or argument '<this>' as it is not available at this instruction pointer, possibly because it has been optimized away."




I hope you can help me.

modified on Tuesday, February 26, 2008 3:58 AM

GeneralRe: Run time error Pin
Judah Gabriel Himango26-Feb-08 6:33
sponsorJudah Gabriel Himango26-Feb-08 6:33 
GeneralRe: Run time error Pin
Gareth H25-Feb-08 6:54
Gareth H25-Feb-08 6:54 
Question[Datagrid] How to disable row selection when Button from ButtonColumn is selected [modified] Pin
Soulhalo25-Feb-08 3:51
Soulhalo25-Feb-08 3:51 
QuestionPop3 Protocol Pin
Sunshine Always25-Feb-08 3:12
Sunshine Always25-Feb-08 3:12 
GeneralRe: Pop3 Protocol Pin
DaveyM6925-Feb-08 3:34
professionalDaveyM6925-Feb-08 3:34 
Generalround Pin
arkiboys25-Feb-08 2:09
arkiboys25-Feb-08 2:09 
GeneralRe: round Pin
DaveyM6925-Feb-08 2:14
professionalDaveyM6925-Feb-08 2:14 
GeneralRe: round Pin
Guffa25-Feb-08 2:34
Guffa25-Feb-08 2:34 
GeneralHelp regarding multiline textbox Pin
i_want_to_learn_c#25-Feb-08 2:00
i_want_to_learn_c#25-Feb-08 2:00 
GeneralRe: Help regarding multiline textbox [modified] Pin
DaveyM6925-Feb-08 2:10
professionalDaveyM6925-Feb-08 2:10 
GeneralRe: Help regarding multiline textbox Pin
Luc Pattyn25-Feb-08 4:55
sitebuilderLuc Pattyn25-Feb-08 4:55 
GeneralRe: Help regarding multiline textbox Pin
i_want_to_learn_c#26-Feb-08 0:37
i_want_to_learn_c#26-Feb-08 0:37 
GeneralRe: Help regarding multiline textbox Pin
Luc Pattyn26-Feb-08 1:01
sitebuilderLuc Pattyn26-Feb-08 1:01 
Generalright click on grid Pin
sobhaniir25-Feb-08 1:48
sobhaniir25-Feb-08 1:48 
GeneralRe: right click on grid Pin
J a a n s25-Feb-08 4:51
professionalJ a a n s25-Feb-08 4:51 
GeneralSending Invitation to other system which is in same LAN Pin
NarVish25-Feb-08 1:44
NarVish25-Feb-08 1:44 
GeneralString iterations .... Pin
nareshss25-Feb-08 0:37
nareshss25-Feb-08 0:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.