Click here to Skip to main content
15,903,203 members
Home / Discussions / C#
   

C#

 
AnswerRe: Constructor in static class Pin
Clifford Nelson11-Sep-12 8:04
Clifford Nelson11-Sep-12 8:04 
Questionpopulate textbox in selectedindexchangeevent Pin
tonyalex00110-Sep-12 20:08
tonyalex00110-Sep-12 20:08 
QuestionRe: populate textbox in selectedindexchangeevent Pin
Wayne Gaylard10-Sep-12 21:01
professionalWayne Gaylard10-Sep-12 21:01 
AnswerRe: populate textbox in selectedindexchangeevent Pin
Bernhard Hiller10-Sep-12 22:00
Bernhard Hiller10-Sep-12 22:00 
QuestionWindows Login Box Pin
mamoony10-Sep-12 10:45
mamoony10-Sep-12 10:45 
AnswerRe: Windows Login Box Pin
Michael_Lu10-Sep-12 11:18
Michael_Lu10-Sep-12 11:18 
GeneralRe: Windows Login Box Pin
mamoony11-Sep-12 2:39
mamoony11-Sep-12 2:39 
AnswerRe: Windows Login Box Pin
Abhinav S10-Sep-12 17:35
Abhinav S10-Sep-12 17:35 
GeneralRe: Windows Login Box Pin
mamoony11-Sep-12 2:43
mamoony11-Sep-12 2:43 
QuestionWeb Service Stack trace .. Pin
UBX10-Sep-12 4:02
UBX10-Sep-12 4:02 
AnswerRe: Web Service Stack trace .. Pin
Dave Kreskowiak10-Sep-12 5:57
mveDave Kreskowiak10-Sep-12 5:57 
GeneralRe: Web Service Stack trace .. Pin
BobJanova11-Sep-12 0:23
BobJanova11-Sep-12 0:23 
GeneralRe: Web Service Stack trace .. Pin
Pete O'Hanlon11-Sep-12 0:36
mvePete O'Hanlon11-Sep-12 0:36 
GeneralRe: Web Service Stack trace .. Pin
BobJanova11-Sep-12 0:44
BobJanova11-Sep-12 0:44 
GeneralRe: Web Service Stack trace .. Pin
Pete O'Hanlon11-Sep-12 1:56
mvePete O'Hanlon11-Sep-12 1:56 
GeneralRe: Web Service Stack trace .. Pin
Dave Kreskowiak11-Sep-12 2:03
mveDave Kreskowiak11-Sep-12 2:03 
QuestionHelp File Authoring Pin
Bart10-Sep-12 3:07
Bart10-Sep-12 3:07 
AnswerRe: Help File Authoring Pin
Pete O'Hanlon10-Sep-12 3:13
mvePete O'Hanlon10-Sep-12 3:13 
GeneralRe: Help File Authoring Pin
Bart10-Sep-12 3:42
Bart10-Sep-12 3:42 
GeneralRe: Help File Authoring Pin
Pete O'Hanlon10-Sep-12 3:47
mvePete O'Hanlon10-Sep-12 3:47 
GeneralRe: Help File Authoring Pin
Bart10-Sep-12 3:57
Bart10-Sep-12 3:57 
GeneralRe: Help File Authoring Pin
Pete O'Hanlon10-Sep-12 4:05
mvePete O'Hanlon10-Sep-12 4:05 
AnswerRe: Help File Authoring Pin
Bernhard Hiller10-Sep-12 22:07
Bernhard Hiller10-Sep-12 22:07 
AnswerRe: Help File Authoring Pin
BobJanova11-Sep-12 0:26
BobJanova11-Sep-12 0:26 
QuestionSystem.AccessViolationException openfiledialog win7 Pin
Rahul Sabharwal10-Sep-12 1:29
Rahul Sabharwal10-Sep-12 1:29 
My project was created in winxp and now migrated to windows7. I am getting a weird exception while click on the openfiledialog icon in my project and the application crashes after this. This only happens when I create a release build and install that build in windows 7.

The setup is also created in the windows 7. I do no get this exception when run the code in the debug mode.

I am setting the initialdirectory property of the openfiledialog to desktopdirectory.

Below is the exception trace i caught in the windows event viewer.

Application: projectname.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.

Exception Info: System.AccessViolationException

Stack:

at System.Windows.Forms.UnsafeNativeMethods.GetOpenFileName(OPENFILENAME_I)

at System.Windows.Forms.OpenFileDialog.RunFileDialog(OPENFILENAME_I)

at System.Windows.Forms.FileDialog.RunDialogOld(IntPtr)

at System.Windows.Forms.FileDialog.RunDialog(IntPtr)

at System.Windows.Forms.CommonDialog.ShowDialog(System.Windows.Forms.IWin32Window)

at System.Windows.Forms.CommonDialog.ShowDialog()

at companyname.projectname.MainForm.processFileOperation(FileOperationType)

at companyname.projectname.MainForm.fileOpenMenuItem_Click(System.Object, System.EventArgs)

at companyname.projectname.MainForm.toolBar_ButtonClick(System.Object, System.Windows.Forms.ToolBarButtonClickEventArgs)

at System.Windows.Forms.ToolBar.OnButtonClick(System.Windows.Forms.ToolBarButtonClickEventArgs)

at System.Windows.Forms.ToolBar.WmReflectCommand(System.Windows.Forms.Message ByRef)

at System.Windows.Forms.ToolBar.WndProc(System.Windows.Forms.Message ByRef)

at System.Windows.Forms.Control+ControlNativeWindow.OnMessage(System.Windows.Forms.Message ByRef)

at System.Windows.Forms.Control+ControlNativeWindow.WndProc(System.Windows.Forms.Message ByRef)

at System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr)

at System.Windows.Forms.UnsafeNativeMethods.SendMessage(System.Runtime.InteropServices.HandleRef, Int32, IntPtr, IntPtr)

at System.Windows.Forms.Control.SendMessage(Int32, IntPtr, IntPtr)

at System.Windows.Forms.Control.ReflectMessageInternal(IntPtr, System.Windows.Forms.Message ByRef)

at System.Windows.Forms.Control.WmCommand(System.Windows.Forms.Message ByRef)

at System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message ByRef)

at System.Windows.Forms.ScrollableControl.WndProc(System.Windows.Forms.Message ByRef)

at System.Windows.Forms.Form.WndProc(System.Windows.Forms.Message ByRef)

at System.Windows.Forms.Control+ControlNativeWindow.OnMessage(System.Windows.Forms.Message ByRef)

at System.Windows.Forms.Control+ControlNativeWindow.WndProc(System.Windows.Forms.Message ByRef)

at System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr)

at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr, IntPtr, Int32, IntPtr, IntPtr)

at System.Windows.Forms.NativeWindow.DefWndProc(System.Windows.Forms.Message ByRef)

at System.Windows.Forms.Control.DefWndProc(System.Windows.Forms.Message ByRef)

at System.Windows.Forms.Control.WmMouseUp(System.Windows.Forms.Message ByRef, System.Windows.Forms.MouseButtons, Int32)
at System.Windows.Forms.Control.WndProc

(System.Windows.Forms.Message ByRef)

at System.Windows.Forms.ToolBar.WndProc(System.Windows.Forms.Message ByRef)

at System.Windows.Forms.Control+ControlNativeWindow.OnMessage(System.Windows.Forms.Message ByRef)

at System.Windows.Forms.Control+ControlNativeWindow.WndProc(System.Windows.Forms.Message ByRef)

at System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr)

at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG ByRef)

at System.Windows.Forms.Application
+ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr, Int32, Int32)

at System.Windows.Forms.Application+ThreadContext.RunMessageLoopInner(Int32, System.Windows.Forms.ApplicationContext)

at System.Windows.Forms.Application+ThreadContext.RunMessageLoop(Int32, System.Windows.Forms.ApplicationContext)

at System.Windows.Forms.Application.Run(System.Windows.Forms.Form)

at companyname.projectname.MainForm.Main(System.String[])

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.