Click here to Skip to main content
15,904,877 members
Home / Discussions / C#
   

C#

 
GeneralRe: WTF??? AccessViolationException Issue Pin
Harvey Saayman1-Apr-08 22:47
Harvey Saayman1-Apr-08 22:47 
GeneralRe: WTF??? AccessViolationException Issue Pin
Rob Philpott1-Apr-08 22:39
Rob Philpott1-Apr-08 22:39 
GeneralRe: WTF??? AccessViolationException Issue Pin
Harvey Saayman1-Apr-08 22:45
Harvey Saayman1-Apr-08 22:45 
GeneralRe: WTF??? AccessViolationException Issue Pin
Rob Philpott1-Apr-08 22:46
Rob Philpott1-Apr-08 22:46 
GeneralRe: WTF??? AccessViolationException Issue Pin
Harvey Saayman1-Apr-08 22:57
Harvey Saayman1-Apr-08 22:57 
GeneralRe: WTF??? AccessViolationException Issue Pin
Rob Philpott1-Apr-08 23:04
Rob Philpott1-Apr-08 23:04 
GeneralRe: WTF??? AccessViolationException Issue Pin
Harvey Saayman1-Apr-08 23:23
Harvey Saayman1-Apr-08 23:23 
GeneralRe: WTF??? AccessViolationException Issue Pin
Victor van Hagen6-Apr-08 2:56
Victor van Hagen6-Apr-08 2:56 
Harvey,

When using classes from interop assemblies (like CSKEMClass) you, as a developer, are responsible for cleaning up any resources you use in your program. Not doing so might cause AccessViolationExceptions and will leak memory because the memory isn't freeed properly.

Try using the following pattern:

CZKEMClass zkSDK = new CZKEMClass();<br />
  // do you stuff<br />
zkSDK.Disconnect(); //disconnect the conection<br />
<br />
Mashal.ReleaseComObject(zkSDK); // This is vital!<br />


Hope it helps.
GeneralRe: WTF??? AccessViolationException Issue Pin
Harvey Saayman7-Apr-08 20:44
Harvey Saayman7-Apr-08 20:44 
GeneralRe: WTF??? AccessViolationException Issue Pin
Victor van Hagen9-Apr-08 8:28
Victor van Hagen9-Apr-08 8:28 
Generalcrystal report formula Pin
Member 44784001-Apr-08 22:07
Member 44784001-Apr-08 22:07 
QuestionCoding help needed Pin
bdiepeveen1-Apr-08 21:26
bdiepeveen1-Apr-08 21:26 
GeneralRe: Coding help needed Pin
Pete O'Hanlon1-Apr-08 22:14
mvePete O'Hanlon1-Apr-08 22:14 
GeneralRe: Coding help needed Pin
Herman<T>.Instance1-Apr-08 23:18
Herman<T>.Instance1-Apr-08 23:18 
GeneralRe: Coding help needed Pin
bdiepeveen3-Apr-08 1:36
bdiepeveen3-Apr-08 1:36 
GeneralAbout Hashtables Pin
John.L.Ponratnam1-Apr-08 19:42
John.L.Ponratnam1-Apr-08 19:42 
GeneralRe: About Hashtables Pin
Spunky Coder1-Apr-08 19:54
Spunky Coder1-Apr-08 19:54 
GeneralRe: About Hashtables Pin
Harvey Saayman1-Apr-08 22:26
Harvey Saayman1-Apr-08 22:26 
QuestionHow to perform cut,delete operation in bitmap? Pin
Aravinthan1-Apr-08 18:51
Aravinthan1-Apr-08 18:51 
GeneralConfused with the Equals() of Object class [modified] Pin
Darmi1-Apr-08 17:48
Darmi1-Apr-08 17:48 
GeneralRe: Confused with the Equals() of Object class Pin
N a v a n e e t h1-Apr-08 20:38
N a v a n e e t h1-Apr-08 20:38 
GeneralRe: Confused with the Equals() of Object class Pin
carbon_golem2-Apr-08 2:48
carbon_golem2-Apr-08 2:48 
GeneralSite Personalization - UserID from the asp_net Profile table Pin
karmasol1-Apr-08 17:46
karmasol1-Apr-08 17:46 
QuestionProblem with Singleton Pattern Pin
Zero Destiny1-Apr-08 17:39
professionalZero Destiny1-Apr-08 17:39 
GeneralRe: Problem with Singleton Pattern Pin
Simon P Stevens1-Apr-08 22:25
Simon P Stevens1-Apr-08 22:25 

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.