Click here to Skip to main content
15,889,216 members
Home / Discussions / C#
   

C#

 
GeneralRe: c# memory crash Pin
Eddy Vluggen13-Dec-19 6:13
professionalEddy Vluggen13-Dec-19 6:13 
GeneralRe: c# memory crash Pin
Member 1449096413-Dec-19 6:21
Member 1449096413-Dec-19 6:21 
GeneralRe: c# memory crash Pin
Eddy Vluggen13-Dec-19 6:24
professionalEddy Vluggen13-Dec-19 6:24 
GeneralRe: c# memory crash Pin
Richard Deeming13-Dec-19 6:31
mveRichard Deeming13-Dec-19 6:31 
GeneralRe: c# memory crash Pin
Eddy Vluggen13-Dec-19 7:12
professionalEddy Vluggen13-Dec-19 7:12 
GeneralRe: c# memory crash Pin
Member 1449096413-Dec-19 6:42
Member 1449096413-Dec-19 6:42 
GeneralRe: c# memory crash Pin
Eddy Vluggen13-Dec-19 7:11
professionalEddy Vluggen13-Dec-19 7:11 
AnswerRe: c# memory crash Pin
Luc Pattyn13-Dec-19 11:59
sitebuilderLuc Pattyn13-Dec-19 11:59 
Hi,

if calling unmanaged code is the suspect, you should make sure the bridge works correctly by having it pass data in both directions. As an example, use:

IN mine.dll:
...
extern "C"
__declspec(dllexport)
int Square(int a) {
    return a*a;
}

Then call it from your C# code and check the return value.


One way to make things fail is by having parts of your process compiled for different architectures, e.g. a 32-bit C DLL and a 64-bit C# main program.

Smile | :)
Luc Pattyn [My Articles] Nil Volentibus Arduum

GeneralRe: c# memory crash Pin
Member 1449096413-Dec-19 14:17
Member 1449096413-Dec-19 14:17 
GeneralRe: c# memory crash Pin
Luc Pattyn13-Dec-19 15:35
sitebuilderLuc Pattyn13-Dec-19 15:35 
GeneralRe: c# memory crash Pin
Eddy Vluggen17-Dec-19 6:24
professionalEddy Vluggen17-Dec-19 6:24 
Questionbest design for an responsibility system Pin
KhaledMohammad10-Dec-19 22:00
KhaledMohammad10-Dec-19 22:00 
AnswerRe: best design for an responsibility system Pin
OriginalGriff10-Dec-19 22:21
mveOriginalGriff10-Dec-19 22:21 
GeneralRe: best design for an responsibility system Pin
KhaledMohammad11-Dec-19 1:03
KhaledMohammad11-Dec-19 1:03 
AnswerRe: best design for an responsibility system Pin
F-ES Sitecore10-Dec-19 22:35
professionalF-ES Sitecore10-Dec-19 22:35 
GeneralRe: best design for an responsibility system Pin
KhaledMohammad11-Dec-19 1:04
KhaledMohammad11-Dec-19 1:04 
QuestionC# VSTO Powerpoint add Text as Field Pin
Member 1357643710-Dec-19 19:10
Member 1357643710-Dec-19 19:10 
QuestionSending Bulk SMS using Multi Threading Pin
meeram399-Dec-19 18:41
professionalmeeram399-Dec-19 18:41 
AnswerRe: Sending Bulk SMS using Multi Threading Pin
OriginalGriff9-Dec-19 20:50
mveOriginalGriff9-Dec-19 20:50 
AnswerRe: Sending Bulk SMS using Multi Threading Pin
jkirkerx10-Dec-19 13:20
professionaljkirkerx10-Dec-19 13:20 
QuestionC# GMap: How to draw arc on a map Pin
Member 139442409-Dec-19 9:03
Member 139442409-Dec-19 9:03 
AnswerRe: C# GMap: How to draw arc on a map Pin
Luc Pattyn9-Dec-19 9:40
sitebuilderLuc Pattyn9-Dec-19 9:40 
QuestionWhich object's destructor is getting called in vector? Pin
_PitrakSarkar_9-Dec-19 1:59
_PitrakSarkar_9-Dec-19 1:59 
SuggestionRe: Which object's destructor is getting called in vector? Pin
Richard Deeming9-Dec-19 2:06
mveRichard Deeming9-Dec-19 2:06 
AnswerRe: Which object's destructor is getting called in vector? Pin
Richard MacCutchan9-Dec-19 3:56
mveRichard MacCutchan9-Dec-19 3: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.