Click here to Skip to main content
15,881,413 members
Home / Discussions / C#
   

C#

 
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[])
AnswerRe: System.AccessViolationException openfiledialog win7 Pin
Eddy Vluggen10-Sep-12 1:40
professionalEddy Vluggen10-Sep-12 1:40 
GeneralRe: System.AccessViolationException openfiledialog win7 Pin
Rahul Sabharwal10-Sep-12 1:47
Rahul Sabharwal10-Sep-12 1:47 
GeneralRe: System.AccessViolationException openfiledialog win7 Pin
Eddy Vluggen10-Sep-12 2:31
professionalEddy Vluggen10-Sep-12 2:31 
QuestionNamedPipeServerStream.GetAccessControl Pin
True_Posi10-Sep-12 0:10
True_Posi10-Sep-12 0:10 
AnswerRe: NamedPipeServerStream.GetAccessControl Pin
Eddy Vluggen10-Sep-12 1:43
professionalEddy Vluggen10-Sep-12 1:43 
GeneralRe: NamedPipeServerStream.GetAccessControl Pin
True_Posi10-Sep-12 2:25
True_Posi10-Sep-12 2:25 
GeneralRe: NamedPipeServerStream.GetAccessControl Pin
Eddy Vluggen10-Sep-12 2:42
professionalEddy Vluggen10-Sep-12 2:42 
GeneralRe: NamedPipeServerStream.GetAccessControl Pin
True_Posi10-Sep-12 3:11
True_Posi10-Sep-12 3:11 
QuestionWhere clause in subcollection Pin
Mark Vloerjans9-Sep-12 21:18
Mark Vloerjans9-Sep-12 21:18 
QuestionRe: Where clause in subcollection Pin
Wayne Gaylard10-Sep-12 1:12
professionalWayne Gaylard10-Sep-12 1:12 
AnswerRe: Where clause in subcollection Pin
Pete O'Hanlon10-Sep-12 1:51
mvePete O'Hanlon10-Sep-12 1:51 
AnswerRe: Where clause in subcollection Pin
BobJanova11-Sep-12 0:31
BobJanova11-Sep-12 0:31 
QuestionHow to convert HTML file to Excel in C# Pin
atma0019-Sep-12 20:29
atma0019-Sep-12 20:29 
AnswerRe: How to convert HTML file to Excel in C# Pin
Eddy Vluggen9-Sep-12 22:14
professionalEddy Vluggen9-Sep-12 22:14 
GeneralRe: How to convert HTML file to Excel in C# Pin
atma00110-Sep-12 6:32
atma00110-Sep-12 6:32 
GeneralRe: How to convert HTML file to Excel in C# Pin
Eddy Vluggen11-Sep-12 1:42
professionalEddy Vluggen11-Sep-12 1:42 
Questionhow can i create an interface for crystal report at user end Pin
rajeeshsays9-Sep-12 13:26
rajeeshsays9-Sep-12 13:26 

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.