Click here to Skip to main content
16,015,414 members
Home / Discussions / C#
   

C#

 
Questionform maxmizied Pin
md_refay9-Jan-07 19:22
md_refay9-Jan-07 19:22 
AnswerRe: form maxmizied Pin
Christian Graus9-Jan-07 19:59
protectorChristian Graus9-Jan-07 19:59 
GeneralRe: form maxmizied Pin
md_refay9-Jan-07 20:25
md_refay9-Jan-07 20:25 
Question.net remoting proxy Pin
s o v a n n9-Jan-07 18:03
s o v a n n9-Jan-07 18:03 
QuestionIs event handler bound to instance of object, and will it stick? Pin
JoeRip9-Jan-07 17:59
JoeRip9-Jan-07 17:59 
AnswerRe: Is event handler bound to instance of object, and will it stick? Pin
Scott Dorman9-Jan-07 18:36
professionalScott Dorman9-Jan-07 18:36 
GeneralRe: Is event handler bound to instance of object, and will it stick? Pin
JoeRip10-Jan-07 14:42
JoeRip10-Jan-07 14:42 
GeneralRe: Is event handler bound to instance of object, and will it stick? Pin
Scott Dorman10-Jan-07 15:18
professionalScott Dorman10-Jan-07 15:18 
JoeRip wrote:
do you mean the itcoStatus object?


Yes, I did mean the itcoStatus object. I guess I wasn't paying close enough attention to your example code.

JoeRip wrote:
if I simply keep overwriting the itcoStatus object with a new instance (not explicitly releasing the old instance) are the handlers bound to the new instance? Or did they become defunct when the old instance was stomped?


Yes, if you overwrite the existing instance of the object with a new instance (by repeatedly calling itcoStatus = new iTunesConvertOperationStatus() you will loose the event handlers. Each time you call new you are creating an entirely new instance of the object.

In your example code, the first line:

iTunesConvertOperationStatus itcoStatus = null;

defines a variable named itcoStatus whose data type is a itunesConvertOperationsStatus object. When you then run code like this:

itcoStatus = new iTunesConvertOperationStatus()

you create a specific instance of that object in memory. The itcoStatus variable holds a reference (essentially a pointer) to the memory used by that instance. Each time you call new you get a new instance, which means you potentially get a different portion of memory so the itcoStatus variable ends up with a different reference.


-----------------------------
In just two days, tomorrow will be yesterday.

QuestionHow to send password value securly Pin
mohd imran abdul aziz9-Jan-07 17:34
mohd imran abdul aziz9-Jan-07 17:34 
AnswerRe: How to send password value securly Pin
Not Active9-Jan-07 17:40
mentorNot Active9-Jan-07 17:40 
AnswerRe: How to send password value securly Pin
Russell Jones9-Jan-07 22:27
Russell Jones9-Jan-07 22:27 
QuestionError handling Pin
Harikrk9-Jan-07 15:43
Harikrk9-Jan-07 15:43 
AnswerRe: Error handling Pin
Paul Conrad9-Jan-07 16:03
professionalPaul Conrad9-Jan-07 16:03 
AnswerRe: Error handling Pin
Christian Graus9-Jan-07 16:04
protectorChristian Graus9-Jan-07 16:04 
GeneralRe: Error handling Pin
JoeRip9-Jan-07 18:12
JoeRip9-Jan-07 18:12 
GeneralRe: Error handling Pin
JoeRip9-Jan-07 18:25
JoeRip9-Jan-07 18:25 
GeneralRe: Error handling Pin
Scott Dorman9-Jan-07 18:33
professionalScott Dorman9-Jan-07 18:33 
GeneralRe: Error handling Pin
Christian Graus9-Jan-07 18:42
protectorChristian Graus9-Jan-07 18:42 
GeneralRe: Error handling Pin
Martin Sp.10-Jan-07 3:41
Martin Sp.10-Jan-07 3:41 
QuestionTree View and Database Pin
64-bit9-Jan-07 14:49
64-bit9-Jan-07 14:49 
AnswerRe: Tree View and Database Pin
Judah Gabriel Himango9-Jan-07 15:42
sponsorJudah Gabriel Himango9-Jan-07 15:42 
GeneralRe: Tree View and Database Pin
64-bit9-Jan-07 17:35
64-bit9-Jan-07 17:35 
GeneralRe: Tree View and Database Pin
Judah Gabriel Himango9-Jan-07 17:37
sponsorJudah Gabriel Himango9-Jan-07 17:37 
QuestionWhy is my app using so much memory? Pin
Anthony Mushrow9-Jan-07 11:51
professionalAnthony Mushrow9-Jan-07 11:51 
AnswerRe: Why is my app using so much memory? Pin
Luc Pattyn9-Jan-07 11:58
sitebuilderLuc Pattyn9-Jan-07 11:58 

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.