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

C#

 
GeneralRe: Passing parameters from unmanaged code to managed code by reference Pin
JimmyRopes1-Mar-13 12:50
professionalJimmyRopes1-Mar-13 12:50 
AnswerRe: Passing parameters from unmanaged code to managed code by reference Pin
Eddy Vluggen1-Mar-13 8:31
professionalEddy Vluggen1-Mar-13 8:31 
GeneralRe: Passing parameters from unmanaged code to managed code by reference Pin
JimmyRopes1-Mar-13 14:15
professionalJimmyRopes1-Mar-13 14:15 
Questionrecord mouse coordinates when mouse is clicked on inkcanvas Pin
Naman20071-Mar-13 4:59
Naman20071-Mar-13 4:59 
AnswerRe: record mouse coordinates when mouse is clicked on inkcanvas Pin
Simon_Whale1-Mar-13 5:30
Simon_Whale1-Mar-13 5:30 
GeneralRe: record mouse coordinates when mouse is clicked on inkcanvas Pin
Naman20071-Mar-13 5:35
Naman20071-Mar-13 5:35 
GeneralRe: record mouse coordinates when mouse is clicked on inkcanvas Pin
Simon_Whale1-Mar-13 5:38
Simon_Whale1-Mar-13 5:38 
QuestionDotSpatial.Positioning.NmeaInterpreter Pin
loctrice1-Mar-13 3:01
professionalloctrice1-Mar-13 3:01 
I've inherited a wrapper for a gps interpretter. The guy who wrote it is dispose happy, I'm guess from the old days with .net. I once had to go back and change all the close calls in managed database connections to .dispose(). This was code we were maintaining, but not code that was touched in my update. So I had to go through the whole project and change them to prevent memory leaks that wasn't there?

Anyway, I found the msdn page, after, that said that wasn't necessary. That still wasn't proof enough?


Ok, so this wrapper is a static class. It has a member NmeaInterpreter, and a method dispose. Dispose says :

C#
if( GpsInterpreter.Device != null) 
{
    GpsInterpreter.Device.Dispose();
}

GpsInterpreter.Dispose();



I don't even think that is necessary. Is it?
If it moves, compile it

AnswerRe: DotSpatial.Positioning.NmeaInterpreter Pin
Eddy Vluggen1-Mar-13 4:57
professionalEddy Vluggen1-Mar-13 4:57 
GeneralRe: DotSpatial.Positioning.NmeaInterpreter Pin
loctrice1-Mar-13 5:04
professionalloctrice1-Mar-13 5:04 
GeneralRe: DotSpatial.Positioning.NmeaInterpreter Pin
Eddy Vluggen1-Mar-13 5:10
professionalEddy Vluggen1-Mar-13 5:10 
Questionsdk Pin
RAJESHSELVARAJ28-Feb-13 23:04
RAJESHSELVARAJ28-Feb-13 23:04 
AnswerRe: sdk Pin
Pete O'Hanlon28-Feb-13 23:24
mvePete O'Hanlon28-Feb-13 23:24 
AnswerRe: sdk Pin
Dave Kreskowiak1-Mar-13 2:21
mveDave Kreskowiak1-Mar-13 2:21 
QuestionIssue using the StreamWritter Class Pin
TwiztedFreek28-Feb-13 13:16
TwiztedFreek28-Feb-13 13:16 
AnswerRe: Issue using the StreamWritter Class Pin
TwiztedFreek28-Feb-13 13:18
TwiztedFreek28-Feb-13 13:18 
AnswerRe: Issue using the StreamWritter Class Pin
Garth J Lancaster28-Feb-13 14:08
professionalGarth J Lancaster28-Feb-13 14:08 
AnswerRe: Issue using the StreamWritter Class Pin
Jegan Thiyagesan28-Feb-13 23:33
Jegan Thiyagesan28-Feb-13 23:33 
AnswerRe: Issue using the StreamWritter Class Pin
Keith Barrow1-Mar-13 1:06
professionalKeith Barrow1-Mar-13 1:06 
AnswerRe: Issue using the StreamWritter Class Pin
Defens931-Mar-13 9:35
Defens931-Mar-13 9:35 
QuestionCopy username from text file to website Pin
Muhammad Sayyam28-Feb-13 2:17
Muhammad Sayyam28-Feb-13 2:17 
AnswerRe: Copy username from text file to website Pin
DaveyM6928-Feb-13 3:07
professionalDaveyM6928-Feb-13 3:07 
GeneralRe: Copy username from text file to website Pin
Richard MacCutchan28-Feb-13 3:23
mveRichard MacCutchan28-Feb-13 3:23 
GeneralRe: Copy username from text file to website Pin
DaveyM6928-Feb-13 10:30
professionalDaveyM6928-Feb-13 10:30 
GeneralRe: Copy username from text file to website Pin
Muhammad Sayyam2-Mar-13 20:19
Muhammad Sayyam2-Mar-13 20:19 

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.