Click here to Skip to main content
15,890,973 members
Home / Discussions / C#
   

C#

 
GeneralRe: Calling C++ Image API from C# Pin
econner14-Jan-11 11:38
econner14-Jan-11 11:38 
GeneralRe: Calling C++ Image API from C# Pin
econner14-Jan-11 12:07
econner14-Jan-11 12:07 
GeneralRe: Calling C++ Image API from C# Pin
econner14-Jan-11 12:30
econner14-Jan-11 12:30 
GeneralRe: Calling C++ Image API from C# Pin
econner15-Jan-11 5:16
econner15-Jan-11 5:16 
GeneralRe: Calling C++ Image API from C# Pin
_Erik_17-Jan-11 2:32
_Erik_17-Jan-11 2:32 
AnswerRe: Calling C++ Image API from C# Pin
Luc Pattyn13-Jan-11 5:18
sitebuilderLuc Pattyn13-Jan-11 5:18 
AnswerRe: Calling C++ Image API from C# [modified] Pin
econner13-Jan-11 6:11
econner13-Jan-11 6:11 
AnswerRe: Calling C++ Image API from C# Pin
Luc Pattyn13-Jan-11 6:22
sitebuilderLuc Pattyn13-Jan-11 6:22 
Not sure what your question is here.

I would comment on the code like this:

1. it does not seem complete. Where is the buffer allocated?
2. I guess, but am not sure, the Marshal attributes used are sufficient to get the buffer pinned for as long as the native method lasts, but no longer.
3. Constructing an image from native data is fine, however it requires the underlying data to remain available as long as the image object lives (see MSDN doc), and that is not very easy to implement correctly. It sure does not show in your code.

Smile | :)
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

GeneralRe: Calling C++ Image API from C# Pin
econner13-Jan-11 6:49
econner13-Jan-11 6:49 
AnswerRe: Calling C++ Image API from C# Pin
Luc Pattyn13-Jan-11 6:56
sitebuilderLuc Pattyn13-Jan-11 6:56 
GeneralRe: Calling C++ Image API from C# Pin
econner13-Jan-11 7:00
econner13-Jan-11 7:00 
AnswerRe: Calling C++ Image API from C# Pin
jschell13-Jan-11 8:06
jschell13-Jan-11 8:06 
QuestionHow to record audio and modify the signal? Pin
softwarejaeger13-Jan-11 3:41
softwarejaeger13-Jan-11 3:41 
AnswerRe: How to record audio and modify the signal? Pin
Rob Philpott13-Jan-11 4:17
Rob Philpott13-Jan-11 4:17 
AnswerRe: How to record audio and modify the signal? Pin
Luc Pattyn13-Jan-11 4:28
sitebuilderLuc Pattyn13-Jan-11 4:28 
AnswerRe: How to record audio and modify the signal? Pin
_Erik_13-Jan-11 4:35
_Erik_13-Jan-11 4:35 
AnswerRe: How to record audio and modify the signal? Pin
Dalek Dave13-Jan-11 4:39
professionalDalek Dave13-Jan-11 4:39 
GeneralRe: How to record audio and modify the signal? Pin
softwarejaeger13-Jan-11 20:16
softwarejaeger13-Jan-11 20:16 
AnswerRe: How to record audio and modify the signal? Pin
César de Souza13-Jan-11 11:16
professionalCésar de Souza13-Jan-11 11:16 
QuestionHow i can make my connection string dynmic with th current root ? Pin
Honeyboy_2013-Jan-11 2:32
Honeyboy_2013-Jan-11 2:32 
AnswerRe: How i can make my connection string dynmic with th current root ? Pin
RaviRanjanKr13-Jan-11 4:20
professionalRaviRanjanKr13-Jan-11 4:20 
GeneralRe: How i can make my connection string dynmic with th current root ? Pin
Honeyboy_2013-Jan-11 7:19
Honeyboy_2013-Jan-11 7:19 
AnswerRe: How i can make my connection string dynmic with th current root ? Pin
RaviRanjanKr13-Jan-11 18:01
professionalRaviRanjanKr13-Jan-11 18:01 
GeneralRe: How i can make my connection string dynmic with th current root ? Pin
Honeyboy_2015-Jan-11 9:41
Honeyboy_2015-Jan-11 9:41 
GeneralRe: How i can make my connection string dynmic with th current root ? Pin
RaviRanjanKr16-Jan-11 2:00
professionalRaviRanjanKr16-Jan-11 2: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.