Click here to Skip to main content
15,914,162 members
Home / Discussions / C#
   

C#

 
GeneralRe: I Need a math formula for this issue. Pin
Luc Pattyn5-Jan-09 15:21
sitebuilderLuc Pattyn5-Jan-09 15:21 
GeneralRe: I Need a math formula for this issue. Pin
_Maxxx_5-Jan-09 17:40
professional_Maxxx_5-Jan-09 17:40 
GeneralRe: I Need a math formula for this issue. Pin
Dewald5-Jan-09 20:38
Dewald5-Jan-09 20:38 
QuestionRead special caractors in XML Pin
Dushan1235-Jan-09 13:48
Dushan1235-Jan-09 13:48 
AnswerRe: Read special caractors in XML Pin
PIEBALDconsult5-Jan-09 16:20
mvePIEBALDconsult5-Jan-09 16:20 
GeneralRe: Read special caractors in XML Pin
Dushan1235-Jan-09 17:27
Dushan1235-Jan-09 17:27 
AnswerRe: Read special caractors in XML Pin
Guffa5-Jan-09 21:28
Guffa5-Jan-09 21:28 
QuestionDispose method calls itself for no reason Pin
mirko865-Jan-09 11:35
mirko865-Jan-09 11:35 
hi everyone

so this is my problem, i have a windows forms proyect, the first form calls the second and that last one is a gui like an agenda, its connected with sqlite (i think this is irrelevant but i just wanted to mention it) the contacts are sorted in a treeview and if i makes changes in one contact, like names or telephone if i click on another contact the program asks if i want to save changes

now here is my problem

sometimes i change the name or something and then when i click on another contact and i choose to save the changes the program will call Dispose method for no reason and shut down, this error has also happened when i choose to NOT save changes, and when i do save them , i look in my database and it DOES save them! debugging my program i noticed that whenever this thing happens it gives me a NullReferenceException, you know the "object reference not set to an instance of an object"

this thing only happens SOMETIMES, for no aparent reason do you have any ideas why is this and how i could fix it?

thanks a lot in advance guys
AnswerRe: Dispose method calls itself for no reason Pin
MidwestLimey5-Jan-09 11:50
professionalMidwestLimey5-Jan-09 11:50 
GeneralRe: Dispose method calls itself for no reason Pin
mirko865-Jan-09 12:08
mirko865-Jan-09 12:08 
GeneralRe: Dispose method calls itself for no reason Pin
Luc Pattyn5-Jan-09 12:55
sitebuilderLuc Pattyn5-Jan-09 12:55 
GeneralRe: Dispose method calls itself for no reason Pin
mirko865-Jan-09 13:13
mirko865-Jan-09 13:13 
GeneralRe: Dispose method calls itself for no reason Pin
mirko865-Jan-09 13:26
mirko865-Jan-09 13:26 
GeneralRe: Dispose method calls itself for no reason Pin
Luc Pattyn5-Jan-09 13:44
sitebuilderLuc Pattyn5-Jan-09 13:44 
GeneralRe: Dispose method calls itself for no reason Pin
mirko865-Jan-09 13:54
mirko865-Jan-09 13:54 
GeneralRe: Dispose method calls itself for no reason Pin
Luc Pattyn5-Jan-09 13:38
sitebuilderLuc Pattyn5-Jan-09 13:38 
GeneralRe: Dispose method calls itself for no reason Pin
mirko865-Jan-09 13:50
mirko865-Jan-09 13:50 
GeneralRe: Dispose method calls itself for no reason Pin
Luc Pattyn5-Jan-09 14:37
sitebuilderLuc Pattyn5-Jan-09 14:37 
GeneralRe: Dispose method calls itself for no reason Pin
MidwestLimey5-Jan-09 14:30
professionalMidwestLimey5-Jan-09 14:30 
GeneralRe: Dispose method calls itself for no reason Pin
Mark Churchill5-Jan-09 16:40
Mark Churchill5-Jan-09 16:40 
AnswerRe: Dispose method calls itself for no reason Pin
Jon Rista6-Jan-09 10:26
Jon Rista6-Jan-09 10:26 
GeneralRe: Dispose method calls itself for no reason Pin
mirko866-Jan-09 11:08
mirko866-Jan-09 11:08 
GeneralRe: Dispose method calls itself for no reason Pin
Jon Rista6-Jan-09 11:45
Jon Rista6-Jan-09 11:45 
GeneralRe: Dispose method calls itself for no reason Pin
mirko866-Jan-09 11:57
mirko866-Jan-09 11:57 
GeneralRe: Dispose method calls itself for no reason Pin
mirko866-Jan-09 12:37
mirko866-Jan-09 12:37 

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.