Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
AnswerRe: Acess violation exception before Main?!? Pin
Olivier Gautherot21-Jul-09 2:58
Olivier Gautherot21-Jul-09 2:58 
GeneralRe: Acess violation exception before Main?!? Pin
stancrm21-Jul-09 3:01
stancrm21-Jul-09 3:01 
GeneralRe: Acess violation exception before Main?!? Pin
Olivier Gautherot21-Jul-09 3:04
Olivier Gautherot21-Jul-09 3:04 
AnswerRe: Acess violation exception before Main?!? Pin
stancrm21-Jul-09 2:59
stancrm21-Jul-09 2:59 
GeneralRe: Acess violation exception before Main?!? Pin
Olivier Gautherot21-Jul-09 3:03
Olivier Gautherot21-Jul-09 3:03 
GeneralRe: Acess violation exception before Main?!? Pin
stancrm21-Jul-09 3:06
stancrm21-Jul-09 3:06 
GeneralRe: Acess violation exception before Main?!? Pin
Olivier Gautherot21-Jul-09 3:13
Olivier Gautherot21-Jul-09 3:13 
AnswerRe: Acess violation exception before Main?!? Pin
Luc Pattyn21-Jul-09 3:10
sitebuilderLuc Pattyn21-Jul-09 3:10 
Hi,

your static Main() method is inside some class; the static constructor of that class, if any, will run first.

As a console app, chances are all/most/large parts of your code are in that class. I suggest you move them out, keep the class containing static Main() as simple as possible, put everything else in another class, either static or instantiated once. That will ease your debugging.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.

GeneralRe: Acess violation exception before Main?!? Pin
Olivier Gautherot21-Jul-09 3:16
Olivier Gautherot21-Jul-09 3:16 
GeneralRe: Acess violation exception before Main?!? Pin
Olivier Gautherot22-Jul-09 1:33
Olivier Gautherot22-Jul-09 1:33 
GeneralRe: Acess violation exception before Main?!? Pin
Luc Pattyn22-Jul-09 1:37
sitebuilderLuc Pattyn22-Jul-09 1:37 
GeneralRe: Acess violation exception before Main?!? Pin
Olivier Gautherot22-Jul-09 3:03
Olivier Gautherot22-Jul-09 3:03 
GeneralRe: Acess violation exception before Main?!? Pin
Olivier Gautherot27-Jul-09 3:43
Olivier Gautherot27-Jul-09 3:43 
GeneralRe: Acess violation exception before Main?!? Pin
Luc Pattyn27-Jul-09 4:00
sitebuilderLuc Pattyn27-Jul-09 4:00 
GeneralRe: Acess violation exception before Main?!? Pin
Olivier Gautherot22-Jul-09 1:41
Olivier Gautherot22-Jul-09 1:41 
QuestionDoes iTextsharp DLL need license ? Pin
venu2k821-Jul-09 2:00
venu2k821-Jul-09 2:00 
AnswerRe: Does iTextsharp DLL need license ? Pin
stancrm21-Jul-09 2:15
stancrm21-Jul-09 2:15 
AnswerRe: Does iTextsharp DLL need license ? Pin
0x3c021-Jul-09 2:28
0x3c021-Jul-09 2:28 
GeneralRe: Does iTextsharp DLL need license ? Pin
venu2k821-Jul-09 3:12
venu2k821-Jul-09 3:12 
QuestionAuthentication Code in C# Pin
cdewzrd21-Jul-09 1:49
cdewzrd21-Jul-09 1:49 
AnswerRe: Authentication Code in C# Pin
stancrm21-Jul-09 2:45
stancrm21-Jul-09 2:45 
QuestionWindows Messaging Pin
Blubbo21-Jul-09 1:41
Blubbo21-Jul-09 1:41 
QuestionRealtime update of Label Pin
Dowse21-Jul-09 1:35
Dowse21-Jul-09 1:35 
AnswerRe: Realtime update of Label Pin
Luc Pattyn21-Jul-09 1:48
sitebuilderLuc Pattyn21-Jul-09 1:48 
GeneralRe: Realtime update of Label Pin
Dowse21-Jul-09 2:04
Dowse21-Jul-09 2:04 

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.