Click here to Skip to main content
15,899,825 members
Home / Discussions / COM
   

COM

 
AnswerRe: StartServiceCtrlDispatcher fails Pin
User 21559727-Sep-06 22:34
User 21559727-Sep-06 22:34 
GeneralRe: StartServiceCtrlDispatcher fails Pin
mpk197929-Sep-06 1:44
mpk197929-Sep-06 1:44 
GeneralRe: StartServiceCtrlDispatcher fails Pin
User 2155973-Oct-06 1:45
User 2155973-Oct-06 1:45 
QuestionHow to create a custom Calendar control in asp.net web application?? Pin
choorakkuttyil27-Sep-06 20:55
choorakkuttyil27-Sep-06 20:55 
Questionoutlook CRM integration Pin
drequinox27-Sep-06 11:31
drequinox27-Sep-06 11:31 
QuestionIWebBrowser2::Navigate2 problems Pin
Shutaro27-Sep-06 8:02
Shutaro27-Sep-06 8:02 
QuestionMap Event queue not cleared after FireEvent call Pin
Shutaro27-Sep-06 7:45
Shutaro27-Sep-06 7:45 
QuestionReturning an array of a userdefined struct via RPC Pin
Mr.Brainley27-Sep-06 3:59
Mr.Brainley27-Sep-06 3:59 
Not directly a COM-Question, but perhaps i get lucky.

I've got this function :

typedef struct
{
	int	size;
	[size_is(size), string] char * text;
} whatastruct;

short	saysomething(	[in] handle_t hl, 
			[in, out, ref] int *size_msg, 
			[out, size_is(*size_msg)] whatastruct **msg);


My server-side implementation looks like this :

short saysomething(handle_t hl, int *length_msg, whatastruct **msg)
{
	*msg	=	new whatastruct[*length_msg];

	for ( int i = 0; i < *length_msg; i++ )
	{
		msg[i]			= new whatastruct;
		msg[i]->text	= new unsigned char[25];
		msg[i]->size	= 25;
		sprintf(reinterpret_cast<char*>(msg[i]->text), "Das ist der %d. String.", i);
	}

	return 0;
}


When i call it, the client crashes during unmarshaling after the return of the function. Can anyone help me or give me a hint ? Google isn't very helpfull on this topic, and MSDN isn't either...
QuestionStarting COM Pin
Suresh H26-Sep-06 19:25
Suresh H26-Sep-06 19:25 
AnswerRe: Starting COM Pin
User 21559726-Sep-06 20:21
User 21559726-Sep-06 20:21 
GeneralRe: Starting COM Pin
Suresh H26-Sep-06 20:39
Suresh H26-Sep-06 20:39 
AnswerRe: Starting COM Pin
ShilpiP27-Sep-06 23:54
ShilpiP27-Sep-06 23:54 
AnswerRe: Starting COM Pin
Hamid_RT4-Oct-06 19:38
Hamid_RT4-Oct-06 19:38 
AnswerRe: Starting COM Pin
Nisamudheen4-Oct-06 23:11
Nisamudheen4-Oct-06 23:11 
QuestionProblem with Interface creation Pin
Sakthiu25-Sep-06 0:57
Sakthiu25-Sep-06 0:57 
QuestionRe: Problem with Interface creation Pin
prasad_som25-Sep-06 1:07
prasad_som25-Sep-06 1:07 
AnswerRe: Problem with Interface creation Pin
Sakthiu25-Sep-06 1:09
Sakthiu25-Sep-06 1:09 
GeneralRe: Problem with Interface creation Pin
prasad_som25-Sep-06 1:15
prasad_som25-Sep-06 1:15 
QuestionProblem with GetInterfaceFromGlobal() or IDispEventImpl::DispEventAdvise() Pin
kschi24-Sep-06 23:23
kschi24-Sep-06 23:23 
AnswerRe: Problem with GetInterfaceFromGlobal() or IDispEventImpl::DispEventAdvise() Pin
Zodiacon25-Sep-06 6:54
Zodiacon25-Sep-06 6:54 
GeneralRe: Problem with GetInterfaceFromGlobal() or IDispEventImpl::DispEventAdvise() Pin
kschi25-Sep-06 20:44
kschi25-Sep-06 20:44 
GeneralRe: Problem with GetInterfaceFromGlobal() or IDispEventImpl::DispEventAdvise() Pin
Zodiacon25-Sep-06 21:24
Zodiacon25-Sep-06 21:24 
GeneralRe: Problem with GetInterfaceFromGlobal() or IDispEventImpl::DispEventAdvise() Pin
kschi26-Sep-06 2:06
kschi26-Sep-06 2:06 
GeneralRe: Problem with GetInterfaceFromGlobal() or IDispEventImpl::DispEventAdvise() Pin
Zodiacon26-Sep-06 2:39
Zodiacon26-Sep-06 2:39 
GeneralRe: Problem with GetInterfaceFromGlobal() or IDispEventImpl::DispEventAdvise() Pin
kschi26-Sep-06 3:19
kschi26-Sep-06 3:19 

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.