Click here to Skip to main content
16,006,440 members
Home / Discussions / C#
   

C#

 
Generalshar singleton instance between Applications Pin
Sk8tz19-Jan-05 2:51
professionalSk8tz19-Jan-05 2:51 
GeneralRe: shar singleton instance between Applications Pin
Judah Gabriel Himango19-Jan-05 4:52
sponsorJudah Gabriel Himango19-Jan-05 4:52 
Questionhow to create a bar that leaves no frames but works like a splitter bar. Pin
just_starting19-Jan-05 2:48
just_starting19-Jan-05 2:48 
AnswerRe: how to create a bar that leaves no frames but works like a splitter bar. Pin
Judah Gabriel Himango19-Jan-05 4:56
sponsorJudah Gabriel Himango19-Jan-05 4:56 
GeneralException after P/Invoke callback Pin
Iwan Littel19-Jan-05 1:33
Iwan Littel19-Jan-05 1:33 
GeneralRe: Exception after P/Invoke callback Pin
leppie19-Jan-05 6:03
leppie19-Jan-05 6:03 
GeneralRe: Exception after P/Invoke callback Pin
Iwan Littel19-Jan-05 22:29
Iwan Littel19-Jan-05 22:29 
GeneralRe: Exception after P/Invoke callback Pin
Heath Stewart19-Jan-05 7:41
protectorHeath Stewart19-Jan-05 7:41 
What leppie is referring to is the fact that the managed GC (garbage collector) can move things around, so that if your function calls your callback and it's moved, your unmanaged code (since it is unmanaged) does not know it and, most often, an AV (access violation) exception occurs, which bubbles up into the CLR which can throw a variety of exceptions.

Another problem that can occur is different calling conventions for functions. If that is the case, read one of my previous replies regarding that issue at http://www.codeproject.com/script/comments/forums.asp?msg=931771&forumid=1649#xx931771xx[^].

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
GeneralRe: Exception after P/Invoke callback Pin
Iwan Littel19-Jan-05 23:02
Iwan Littel19-Jan-05 23:02 
GeneralRe: Exception after P/Invoke callback Pin
Heath Stewart20-Jan-05 5:50
protectorHeath Stewart20-Jan-05 5:50 
GeneralRe: Exception after P/Invoke callback Pin
Iwan Littel24-Jan-05 3:42
Iwan Littel24-Jan-05 3:42 
GeneralC# grouping / sorting Crystal Reports at runtime Pin
TehMedic19-Jan-05 1:21
TehMedic19-Jan-05 1:21 
Generalerror BC31019: -- Help needed Pin
Md Saleem Navalur19-Jan-05 0:29
Md Saleem Navalur19-Jan-05 0:29 
GeneralRe: error BC31019: -- Help needed Pin
Robert Rohde19-Jan-05 0:41
Robert Rohde19-Jan-05 0:41 
GeneralRe: error BC31019: -- Help needed Pin
Md Saleem Navalur19-Jan-05 0:54
Md Saleem Navalur19-Jan-05 0:54 
GeneralRe: error BC31019: -- Help needed Pin
Md Saleem Navalur20-Jan-05 1:27
Md Saleem Navalur20-Jan-05 1:27 
Generalembedding text files into a project Pin
mike chaplee18-Jan-05 23:20
mike chaplee18-Jan-05 23:20 
GeneralRe: embedding text files into a project Pin
Colin Angus Mackay19-Jan-05 0:15
Colin Angus Mackay19-Jan-05 0:15 
GeneralRe: embedding text files into a project Pin
mike chaplee19-Jan-05 1:17
mike chaplee19-Jan-05 1:17 
GeneralRe: embedding text files into a project Pin
Colin Angus Mackay19-Jan-05 1:19
Colin Angus Mackay19-Jan-05 1:19 
Questionhow to read unicode in msflexgrid Pin
ye win zaw18-Jan-05 22:51
ye win zaw18-Jan-05 22:51 
GeneralRemove background image from a button programatically Pin
kloepper18-Jan-05 22:12
kloepper18-Jan-05 22:12 
GeneralRe: Remove background image from a button programatically Pin
Stefan Troschuetz19-Jan-05 0:17
Stefan Troschuetz19-Jan-05 0:17 
GeneralRe: Remove background image from a button programatically Pin
kloepper19-Jan-05 10:02
kloepper19-Jan-05 10:02 
Generaluse of array in this program Pin
ramyasks18-Jan-05 22:00
ramyasks18-Jan-05 22:00 

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.