Click here to Skip to main content
15,911,646 members
Home / Discussions / C#
   

C#

 
AnswerRe: VersionInfo? Pin
Judah Gabriel Himango16-Apr-07 9:34
sponsorJudah Gabriel Himango16-Apr-07 9:34 
GeneralRe: VersionInfo? Pin
Ravi Bhavnani16-Apr-07 9:55
professionalRavi Bhavnani16-Apr-07 9:55 
Questionpinvoke COM function and damaged memory [modified] Pin
realmontanakid16-Apr-07 8:46
realmontanakid16-Apr-07 8:46 
AnswerRe: pinvoke COM function and damaged memory Pin
led mike16-Apr-07 9:12
led mike16-Apr-07 9:12 
GeneralRe: pinvoke COM function and damaged memory Pin
Judah Gabriel Himango16-Apr-07 9:50
sponsorJudah Gabriel Himango16-Apr-07 9:50 
GeneralRe: pinvoke COM function and damaged memory Pin
led mike16-Apr-07 10:50
led mike16-Apr-07 10:50 
AnswerRe: pinvoke COM function and damaged memory Pin
Judah Gabriel Himango16-Apr-07 9:43
sponsorJudah Gabriel Himango16-Apr-07 9:43 
GeneralRe: pinvoke COM function and damaged memory [modified] Pin
realmontanakid16-Apr-07 10:05
realmontanakid16-Apr-07 10:05 
I can do it with a StringBuilder or like this,
<br />
byte[] buffer = new byte[512];<br />
<br />
                    unsafe<br />
                    {<br />
                       fixed (byte* pBuffer = buffer)<br />
                       {<br />
                          ret = theFunc(_o, pBuffer);<br />
                       }<br />
                    }<br />

The second Parameter is an out param, it gives me a path to a file. If i do it with a StringBuilder or with a pointer to a buffer, it is the same result. In a Windows Forms Application, the buffer is NOT empty, in a Windows Service the buffer IS empty.. I try it on different machines and with different user accounts (Local System, User etc.). In a service it won't work.The com interface is marshalled correct.

Attempted to read or write protected memory. This is often an indication that other memory is corrupt."


-- modified at 17:29 Monday 16th April, 2007
GeneralRe: pinvoke COM function and damaged memory Pin
Luc Pattyn16-Apr-07 11:52
sitebuilderLuc Pattyn16-Apr-07 11:52 
GeneralRe: pinvoke COM function and damaged memory Pin
realmontanakid16-Apr-07 12:08
realmontanakid16-Apr-07 12:08 
GeneralRe: pinvoke COM function and damaged memory Pin
Luc Pattyn16-Apr-07 13:27
sitebuilderLuc Pattyn16-Apr-07 13:27 
GeneralRe: pinvoke COM function and damaged memory Pin
Luc Pattyn16-Apr-07 13:38
sitebuilderLuc Pattyn16-Apr-07 13:38 
QuestionDynamic enumeration Pin
kkadir16-Apr-07 8:34
kkadir16-Apr-07 8:34 
AnswerRe: Dynamic enumeration Pin
Judah Gabriel Himango16-Apr-07 9:46
sponsorJudah Gabriel Himango16-Apr-07 9:46 
GeneralRe: Dynamic enumeration Pin
kkadir16-Apr-07 10:42
kkadir16-Apr-07 10:42 
GeneralRe: Dynamic enumeration Pin
Judah Gabriel Himango17-Apr-07 4:57
sponsorJudah Gabriel Himango17-Apr-07 4:57 
AnswerRe: Dynamic enumeration Pin
pbraun16-Apr-07 13:13
pbraun16-Apr-07 13:13 
QuestionHow can i change values in a program's memory? Pin
sharpiesharpie16-Apr-07 8:11
sharpiesharpie16-Apr-07 8:11 
AnswerRe: How can i change values in a program's memory? Pin
Judah Gabriel Himango16-Apr-07 9:48
sponsorJudah Gabriel Himango16-Apr-07 9:48 
GeneralRe: How can i change values in a program's memory? Pin
sharpiesharpie16-Apr-07 9:53
sharpiesharpie16-Apr-07 9:53 
GeneralRe: How can i change values in a program's memory? Pin
Colin Angus Mackay16-Apr-07 11:20
Colin Angus Mackay16-Apr-07 11:20 
QuestionRe: How can i change values in a program's memory? Pin
sthotakura16-Apr-07 11:17
sthotakura16-Apr-07 11:17 
AnswerRe: How can i change values in a program's memory? Pin
sharpiesharpie16-Apr-07 12:32
sharpiesharpie16-Apr-07 12:32 
AnswerRe: How can i change values in a program's memory? Pin
sthotakura16-Apr-07 20:27
sthotakura16-Apr-07 20:27 
GeneralRe: How can i change values in a program's memory? Pin
sharpiesharpie16-Apr-07 20:58
sharpiesharpie16-Apr-07 20:58 

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.