![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, I figured out that all objects based on System.Windows.Forms.UserControl are never disposed by the Compact Framework GC. This problem occours only under Windows CE not with Win32/ Win64. Is this a known issue? Is there any fix for it? How about the .NET Compact Framework 3.5? Is it fixed there? Thanks, Armin |
#3
| |||
| |||
|
|
And you have a repro? I've not heard of it as an issue and since the CF is several years old, I'd suspect we'd have heard of someone having the problem before now. -- Chris Tacke, eMVP Join the Embedded Developer Community http://community.opennetcf.com "Armin Sczuka" <sczuka (AT) newsgroup (DOT) nospam> wrote in message news:OUy9pIcLIHA.1204 (AT) TK2MSFTNGP03 (DOT) phx.gbl... Hello, I figured out that all objects based on System.Windows.Forms.UserControl are never disposed by the Compact Framework GC. This problem occours only under Windows CE not with Win32/ Win64. Is this a known issue? Is there any fix for it? How about the .NET Compact Framework 3.5? Is it fixed there? Thanks, Armin |
#4
| |||
| |||
|
|
And you have a repro? I've not heard of it as an issue and since the CF is several years old, I'd suspect we'd have heard of someone having the problem before now. -- Chris Tacke, eMVP Join the Embedded Developer Community http://community.opennetcf.com "Armin Sczuka" <sczuka (AT) newsgroup (DOT) nospam> wrote in message news:OUy9pIcLIHA.1204 (AT) TK2MSFTNGP03 (DOT) phx.gbl... Hello, I figured out that all objects based on System.Windows.Forms.UserControl are never disposed by the Compact Framework GC. This problem occours only under Windows CE not with Win32/ Win64. Is this a known issue? Is there any fix for it? How about the .NET Compact Framework 3.5? Is it fixed there? Thanks, Armin |
#5
| |||
| |||
|
|
"Peter Foot [MVP]" <feedback (AT) nospam-inthehand (DOT) com> wrote in message news:97643E3A-D770-4DAF-808B-1044095CBB2A (AT) microsoft (DOT) com... This is a Console app, can you repro it in a windows forms application? Peter -- Peter Foot Microsoft Device Application Development MVP www.peterfoot.net | www.inthehand.com In The Hand Ltd - .NET Solutions for Mobility |
#6
| |||
| |||
|
|
Yes Peter, It's the same there. Actually the objects seams to be collected if you manually call IDisposable.Dispose(). /Armin "Peter Foot [MVP]" <feedback (AT) nospam-inthehand (DOT) com> wrote in message news:97643E3A-D770-4DAF-808B-1044095CBB2A (AT) microsoft (DOT) com... This is a Console app, can you repro it in a windows forms application? Peter -- Peter Foot Microsoft Device Application Development MVP www.peterfoot.net | www.inthehand.com In The Hand Ltd - .NET Solutions for Mobility |
#7
| |||
| |||
|
|
Armin, You answered your own question. Just like for forms, you controls, you must call dispose for the control to be collected. If you do not, then the control will never be marked for collection. As as test you can create a form and then not call the dispose in the finally method, and you will see the memory never be deallocated. I've been called in on several projects that were leaking memory and that is usually the reason for the leakage. Regards, Rick D. Contractor "Armin Sczuka" wrote: Yes Peter, It's the same there. Actually the objects seams to be collected if you manually call IDisposable.Dispose(). /Armin "Peter Foot [MVP]" <feedback (AT) nospam-inthehand (DOT) com> wrote in message news:97643E3A-D770-4DAF-808B-1044095CBB2A (AT) microsoft (DOT) com... This is a Console app, can you repro it in a windows forms application? Peter -- Peter Foot Microsoft Device Application Development MVP www.peterfoot.net | www.inthehand.com In The Hand Ltd - .NET Solutions for Mobility |
#8
| |||
| |||
|
|
Hi, I have just a question : If my usercontrol contains controls, should I have to dispose all objects before disposing my usercontrol ? Thanks "dbgrick" <dbgrick (AT) discussions (DOT) microsoft.com> a écrit dans le message de news: 3D932C91-C963-4675-8514-D7CA911BF325...soft (DOT) com... Armin, You answered your own question. Just like for forms, you controls, you must call dispose for the control to be collected. If you do not, then the control will never be marked for collection. As as test you can create a form and then not call the dispose in the finally method, and you will see the memory never be deallocated. I've been called in on several projects that were leaking memory and that is usually the reason for the leakage. Regards, Rick D. Contractor "Armin Sczuka" wrote: Yes Peter, It's the same there. Actually the objects seams to be collected if you manually call IDisposable.Dispose(). /Armin "Peter Foot [MVP]" <feedback (AT) nospam-inthehand (DOT) com> wrote in message news:97643E3A-D770-4DAF-808B-1044095CBB2A (AT) microsoft (DOT) com... This is a Console app, can you repro it in a windows forms application? Peter -- Peter Foot Microsoft Device Application Development MVP www.peterfoot.net | www.inthehand.com In The Hand Ltd - .NET Solutions for Mobility |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |