Click here to Skip to main content
15,915,703 members
Home / Discussions / Windows Forms
   

Windows Forms

 
AnswerRe: how to check the data in the database Pin
Paul Conrad18-Aug-07 8:22
professionalPaul Conrad18-Aug-07 8:22 
QuestionListview control Pin
Sunil Radhakrishnan16-Aug-07 7:15
Sunil Radhakrishnan16-Aug-07 7:15 
AnswerRe: Listview control Pin
Giorgi Dalakishvili16-Aug-07 7:34
mentorGiorgi Dalakishvili16-Aug-07 7:34 
GeneralRe: Listview control Pin
Sunil Radhakrishnan18-Aug-07 7:08
Sunil Radhakrishnan18-Aug-07 7:08 
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 
Hi Thanks for your reply.

All handles are created right away.Its handled via main. We did not disable cross-thread-violation checks.Every time I get same exception which i have posted earlier.
The system doesnt crash very frequently but I have learnt how to crash the system. Below is the codes where the exception occurs and how i catch it.

Public Shared Sub StartApp_Process(ByVal restartApp As Boolean)
Debug.WriteLine("APPLICATION STARTER: Starting the app in a seperate process")

'Load the config file
Dim Config As AppStartConfig
Config = LoadConfig()
myAppExePath = Config.AppExePath

'If the app has been started by this process before
If Not (myAppProcess Is Nothing) Then
'& the app is still running, no need to start the app
If Not myAppProcess.HasExited Then
Return
End If
End If
'Start the app
Try
Dim p As New ProcessStartInfo(myAppExePath)
p.WorkingDirectory = Path.GetDirectoryName(myAppExePath)

' Notify the app if we are restarting in case there's something they want to do differently
If restartApp Then
p.Arguments = myRestartCommandLineString
Else
p.Arguments = myCommandLineString
End If
myAppProcess = Process.Start(p)
Debug.WriteLine(("APPLICATION STARTER: Started app: " + myAppExePath))
Catch e As Exception
Debug.WriteLine(("APPLICATION STARTER: Failed to start process at: " + myAppExePath))
HandleWin32Exception(e)
HandleTerminalError(e)
End Try
End Sub
Private Shared Sub HandleWin32Exception(ByVal w As Win32Exception)
MsgBox(w.Message)
MsgBox(w.ErrorCode.ToString())
MsgBox(w.NativeErrorCode.ToString())
MsgBox(w.StackTrace)
MsgBox(w.Source)
Dim e As New Exception
e = w.GetBaseException()
MsgBox(e.Message)

Environment.Exit(0)
End Sub

the application has a search facility and the results are returned in a xceed grid control. when clicked on a record return by search in a datagrid, it loads all the information about that particular record into a new windows control. this control has lots of information thats why there are lots of tabs etc. so i managed to reproduce same error when i click on a record and view detail and back and forth so after certain time (e.g. after 10-15 clicks from clicking the record to viewing the details).

each windows control is not a form its a windows control which is rentered in a main form.
I could run both release and debug code. i run debug code in development environment while i could also run the live application too. I have noticed when the system crashes it uses high process normally Mem usage goes upto 149,160K (I took this info right after the system crashed for that application).

please help. I have read in some articles that this exception occurs when there are too many controls and yes I believe that there are lots of controls when a row details controls are loaded. It only crashes when its trying to load this control and it has tabs as i mentioned in my earlier post.

please help

Bikash

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 
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 

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.