Click here to Skip to main content
15,901,426 members
Home / Discussions / Windows Forms
   

Windows Forms

 
QuestionSystem.ComponentModel.Win32Exception: Error creating window handle. Pin
uglyeyes15-Aug-07 19:02
uglyeyes15-Aug-07 19:02 
AnswerRe: System.ComponentModel.Win32Exception: Error creating window handle. Pin
uglyeyes19-Aug-07 13:45
uglyeyes19-Aug-07 13:45 
AnswerRe: System.ComponentModel.Win32Exception: Error creating window handle. Pin
Luc Pattyn19-Aug-07 14:04
sitebuilderLuc Pattyn19-Aug-07 14:04 
GeneralRe: System.ComponentModel.Win32Exception: Error creating window handle. Pin
uglyeyes19-Aug-07 17:16
uglyeyes19-Aug-07 17:16 
GeneralRe: System.ComponentModel.Win32Exception: Error creating window handle. Pin
uglyeyes19-Aug-07 18:05
uglyeyes19-Aug-07 18:05 
GeneralRe: System.ComponentModel.Win32Exception: Error creating window handle. Pin
Luc Pattyn19-Aug-07 22:50
sitebuilderLuc Pattyn19-Aug-07 22:50 
GeneralRe: System.ComponentModel.Win32Exception: Error creating window handle. Pin
uglyeyes21-Aug-07 14:44
uglyeyes21-Aug-07 14:44 
GeneralRe: System.ComponentModel.Win32Exception: Error creating window handle. Pin
Luc Pattyn21-Aug-07 15:38
sitebuilderLuc Pattyn21-Aug-07 15:38 
Hi,

if memory falls back to less than 10MB every time you minimize, then that is
very good; the gc is called when you minimize; it will also get called when
there is a need to, and you seem to have proven it will effectively free most memory.

there is not much I can do, since I don't really know your app.

repeat from 2 days ago:
If you decide to persue this further on this forum, you may want to provide
more information with respect to:
- threads; what do you use, what for, ... <<<<<<<<<<<<<<<<<<<<<
- AppDomains; dito <<<<<<<<<<<<<<<<<<<<<
- memory situation
- circumstances of crash

You once mentioned "each windows control is not a form its a windows control which
is rentered in a main form." but I don't understand what you are saying here.
Can you clarify?

Some more questions:
- what is your .NET version?
- what is your OS?
- how much RAM memory is there?
- what would be the biggest objects? and how many typically?
- do you have large unmanaged memory blocks (either allocated by native code,
as in malloc(), or native data structures behind managed objects you are aware of?
- do you use double buffering? for all controls? how? do you do it yourself, if
so provide details; or do you use double-buffering as built-in in .NET 2.0?
(maybe this takes a lot of unmanaged memory)
- do you use P/Invoke at all?
- are you pinning objects?
- are you calling the garbage collector explicitly? if so, explain how and why.
- are there special things involved: databases, reflection, XML, ...
- did you feel the need to do special things that you maybe don't really understand
but that seemed necessary to get around some problems?
- how big is your app? how many hundreds/thousands of lines of code?
- how many of those "xceed grid control"s do you instantiate?

Could you show some of the complex forms? when you say "a lot of controls"
I may not have the same idea you do about "a lot".

Do you have logging installed, so you can trace which major objects get created,
which methods get executed, etc? if not, that is what I would do. In fact, I
always do that from the beginning, it always pays off, it even saves a lot of
development time; the simplest log method takes a string, prefixes the
current time, and prints it on the debug console.

Hope this helps.



Luc Pattyn [Forum Guidelines] [My Articles]


this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google


GeneralRe: System.ComponentModel.Win32Exception: Error creating window handle. Pin
uglyeyes9-Sep-07 17:05
uglyeyes9-Sep-07 17:05 
GeneralRe: System.ComponentModel.Win32Exception: Error creating window handle. Pin
Luc Pattyn10-Sep-07 0:07
sitebuilderLuc Pattyn10-Sep-07 0:07 
GeneralRe: System.ComponentModel.Win32Exception: Error creating window handle. Pin
uglyeyes10-Sep-07 17:57
uglyeyes10-Sep-07 17:57 
GeneralRe: System.ComponentModel.Win32Exception: Error creating window handle. Pin
Luc Pattyn11-Sep-07 0:25
sitebuilderLuc Pattyn11-Sep-07 0:25 
GeneralRe: System.ComponentModel.Win32Exception: Error creating window handle. Pin
uglyeyes11-Sep-07 16:13
uglyeyes11-Sep-07 16:13 
GeneralRe: System.ComponentModel.Win32Exception: Error creating window handle. Pin
Luc Pattyn11-Sep-07 16:31
sitebuilderLuc Pattyn11-Sep-07 16:31 
GeneralRe: System.ComponentModel.Win32Exception: Error creating window handle. Pin
uglyeyes11-Sep-07 16:35
uglyeyes11-Sep-07 16:35 
GeneralRe: System.ComponentModel.Win32Exception: Error creating window handle. Pin
uglyeyes11-Sep-07 16:40
uglyeyes11-Sep-07 16:40 
GeneralRe: System.ComponentModel.Win32Exception: Error creating window handle. Pin
Luc Pattyn12-Sep-07 0:12
sitebuilderLuc Pattyn12-Sep-07 0:12 
GeneralRe: System.ComponentModel.Win32Exception: Error creating window handle. Pin
uglyeyes12-Sep-07 14:02
uglyeyes12-Sep-07 14:02 
GeneralRe: System.ComponentModel.Win32Exception: Error creating window handle. Pin
Luc Pattyn12-Sep-07 14:19
sitebuilderLuc Pattyn12-Sep-07 14:19 
Questionhow can i disable some combination of keys Pin
abdlellah15-Aug-07 6:59
abdlellah15-Aug-07 6:59 
AnswerRe: how can i disable some combination of keys Pin
Rocky#16-Aug-07 1:43
Rocky#16-Aug-07 1:43 
GeneralRe: how can i disable some combination of keys Pin
abdlellah18-Aug-07 3:08
abdlellah18-Aug-07 3:08 
QuestionVisual programming. Pin
Antony5214-Aug-07 7:26
Antony5214-Aug-07 7:26 
AnswerRe: Visual programming. Pin
Pete O'Hanlon16-Aug-07 0:49
mvePete O'Hanlon16-Aug-07 0:49 
GeneralRe: Visual programming. Pin
Luc Pattyn16-Aug-07 1:30
sitebuilderLuc Pattyn16-Aug-07 1:30 

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.