Click here to Skip to main content
16,004,924 members
Home / Discussions / C#
   

C#

 
GeneralRe: VISIO SDK problems Pin
Anonymous11-Apr-04 20:23
Anonymous11-Apr-04 20:23 
GeneralRe: VISIO SDK problems Pin
Anonymous12-Apr-04 0:46
Anonymous12-Apr-04 0:46 
Questionwindow messages hooking??? Pin
SherKar9-Apr-04 0:47
SherKar9-Apr-04 0:47 
AnswerRe: window messages hooking??? Pin
Mazdak9-Apr-04 0:55
Mazdak9-Apr-04 0:55 
GeneralRe: window messages hooking??? Pin
SherKar9-Apr-04 1:40
SherKar9-Apr-04 1:40 
GeneralRe: window messages hooking??? Pin
Heath Stewart9-Apr-04 3:57
protectorHeath Stewart9-Apr-04 3:57 
GeneralObject Reference Required Pin
thewebmonster9-Apr-04 0:31
thewebmonster9-Apr-04 0:31 
GeneralRe: Object Reference Required Pin
Colin Angus Mackay9-Apr-04 0:47
Colin Angus Mackay9-Apr-04 0:47 
Okay. It looks like one of your variables is not initialised properly. First you need to determine what is null (in other words what doesn't have an object reference).

A quick tour of some of the debugging features in VS.NET: The watch window and the call stack will come in useful. Re-run your program and wait for it to crash, then you can see from the call stack where the program crashed (you can also navigate up and down the call stack to see what was calling what at the time). In the watch window you can see the values of your variables and objects. Does any of these look like is should contain a value but doesn't. You can also hover over variables and properties in the code window to see their value at the point the program stopped.

If this doesn't work. The next thing you can try is setting breakpoints prior to the fault and stepping slowly through the code watching the variables change and the program execute at a speed you can comprehend. Does anything look like it should happen but doesn't - Like if statements that don't quite work they way you expect etc.

Does this help?


"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar

"On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question."
--Charles Babbage (1791-1871)


GeneralRe: Object Reference Required Pin
thewebmonster9-Apr-04 0:50
thewebmonster9-Apr-04 0:50 
GeneralRe: Object Reference Required Pin
Colin Angus Mackay9-Apr-04 1:04
Colin Angus Mackay9-Apr-04 1:04 
GeneralRe: Object Reference Required Pin
thewebmonster9-Apr-04 1:20
thewebmonster9-Apr-04 1:20 
GeneralRe: Object Reference Required Pin
Colin Angus Mackay9-Apr-04 1:36
Colin Angus Mackay9-Apr-04 1:36 
GeneralRe: Object Reference Required Pin
thewebmonster9-Apr-04 3:53
thewebmonster9-Apr-04 3:53 
GeneralRe: Object Reference Required Pin
Heath Stewart9-Apr-04 4:01
protectorHeath Stewart9-Apr-04 4:01 
GeneralRe: Object Reference Required Pin
thewebmonster9-Apr-04 4:03
thewebmonster9-Apr-04 4:03 
GeneralRe: Object Reference Required Pin
Heath Stewart9-Apr-04 4:09
protectorHeath Stewart9-Apr-04 4:09 
GeneralRe: Object Reference Required Pin
thewebmonster9-Apr-04 4:13
thewebmonster9-Apr-04 4:13 
GeneralRe: Object Reference Required Pin
Michael P Butler9-Apr-04 1:08
Michael P Butler9-Apr-04 1:08 
GeneralRe: Object Reference Required Pin
thewebmonster9-Apr-04 1:21
thewebmonster9-Apr-04 1:21 
GeneralCLients Communication Pin
8-Apr-04 23:08
suss8-Apr-04 23:08 
GeneralRe: CLients Communication Pin
Colin Angus Mackay9-Apr-04 0:38
Colin Angus Mackay9-Apr-04 0:38 
QuestionHow to Import Data from text file to SQL Server Pin
DucLinh8-Apr-04 22:53
DucLinh8-Apr-04 22:53 
GeneralRe: Import data into SQL Server from file text Pin
Michael P Butler8-Apr-04 22:29
Michael P Butler8-Apr-04 22:29 
GeneralMS Messsage Queue Pin
Login GoodSites8-Apr-04 19:38
Login GoodSites8-Apr-04 19:38 
GeneralRe: MS Messsage Queue Pin
Mazdak9-Apr-04 1:56
Mazdak9-Apr-04 1:56 

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.