Click here to Skip to main content
15,176,220 members
Home / Discussions / C#
   

C#

 
AnswerRe: Help File Authoring Pin
Pete O'Hanlon10-Sep-12 4:13
mvaPete O'Hanlon10-Sep-12 4:13 
GeneralRe: Help File Authoring Pin
Bart10-Sep-12 4:42
MemberBart10-Sep-12 4:42 
GeneralRe: Help File Authoring Pin
Pete O'Hanlon10-Sep-12 4:47
mvaPete O'Hanlon10-Sep-12 4:47 
GeneralRe: Help File Authoring Pin
Bart10-Sep-12 4:57
MemberBart10-Sep-12 4:57 
GeneralRe: Help File Authoring Pin
Pete O'Hanlon10-Sep-12 5:05
mvaPete O'Hanlon10-Sep-12 5:05 
AnswerRe: Help File Authoring Pin
Bernhard Hiller10-Sep-12 23:07
MemberBernhard Hiller10-Sep-12 23:07 
AnswerRe: Help File Authoring Pin
BobJanova11-Sep-12 1:26
MemberBobJanova11-Sep-12 1:26 
QuestionSystem.AccessViolationException openfiledialog win7 Pin
Rahul Sabharwal10-Sep-12 2:29
MemberRahul Sabharwal10-Sep-12 2: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 2:40
professionalEddy Vluggen10-Sep-12 2:40 
GeneralRe: System.AccessViolationException openfiledialog win7 Pin
Rahul Sabharwal10-Sep-12 2:47
MemberRahul Sabharwal10-Sep-12 2:47 
GeneralRe: System.AccessViolationException openfiledialog win7 Pin
Eddy Vluggen10-Sep-12 3:31
professionalEddy Vluggen10-Sep-12 3:31 
QuestionNamedPipeServerStream.GetAccessControl Pin
True_Posi10-Sep-12 1:10
MemberTrue_Posi10-Sep-12 1:10 
AnswerRe: NamedPipeServerStream.GetAccessControl Pin
Eddy Vluggen10-Sep-12 2:43
professionalEddy Vluggen10-Sep-12 2:43 
GeneralRe: NamedPipeServerStream.GetAccessControl Pin
True_Posi10-Sep-12 3:25
MemberTrue_Posi10-Sep-12 3:25 
GeneralRe: NamedPipeServerStream.GetAccessControl Pin
Eddy Vluggen10-Sep-12 3:42
professionalEddy Vluggen10-Sep-12 3:42 
GeneralRe: NamedPipeServerStream.GetAccessControl Pin
True_Posi10-Sep-12 4:11
MemberTrue_Posi10-Sep-12 4:11 
QuestionWhere clause in subcollection Pin
Mark Vloerjans9-Sep-12 22:18
MemberMark Vloerjans9-Sep-12 22:18 
QuestionRe: Where clause in subcollection Pin
Wayne Gaylard10-Sep-12 2:12
professionalWayne Gaylard10-Sep-12 2:12 
AnswerRe: Where clause in subcollection Pin
Pete O'Hanlon10-Sep-12 2:51
mvaPete O'Hanlon10-Sep-12 2:51 
AnswerRe: Where clause in subcollection Pin
BobJanova11-Sep-12 1:31
MemberBobJanova11-Sep-12 1:31 
QuestionHow to convert HTML file to Excel in C# Pin
atma0019-Sep-12 21:29
Memberatma0019-Sep-12 21:29 
AnswerRe: How to convert HTML file to Excel in C# Pin
Eddy Vluggen9-Sep-12 23:14
professionalEddy Vluggen9-Sep-12 23:14 
GeneralRe: How to convert HTML file to Excel in C# Pin
atma00110-Sep-12 7:32
Memberatma00110-Sep-12 7:32 
GeneralRe: How to convert HTML file to Excel in C# Pin
Eddy Vluggen11-Sep-12 2:42
professionalEddy Vluggen11-Sep-12 2:42 
Questionhow can i create an interface for crystal report at user end Pin
rajeeshsays9-Sep-12 14:26
Memberrajeeshsays9-Sep-12 14: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.