Click here to Skip to main content
16,006,535 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: reading array of integers in C++ from Matlab Pin
Christian Graus30-Jan-07 10:59
protectorChristian Graus30-Jan-07 10:59 
AnswerRe: reading array of integers in C++ from Matlab Pin
Bartosz Bien31-Jan-07 10:58
Bartosz Bien31-Jan-07 10:58 
QuestionAuto view CD Pin
hoa_nguyen29-Jan-07 22:02
hoa_nguyen29-Jan-07 22:02 
QuestionMP3 Convertor Pin
Member 269015129-Jan-07 20:12
Member 269015129-Jan-07 20:12 
AnswerRe: MP3 Convertor Pin
Christian Graus29-Jan-07 22:00
protectorChristian Graus29-Jan-07 22:00 
QuestionProblem with SqlDataReader::GetBytes [modified] Pin
p_c29-Jan-07 5:04
p_c29-Jan-07 5:04 
AnswerRe: Problem with SqlDataReader::GetBytes Pin
prasad_som29-Jan-07 7:15
prasad_som29-Jan-07 7:15 
QuestionFirst-Chance exception Pin
uusheikh28-Jan-07 21:53
uusheikh28-Jan-07 21:53 
Hi,

i have a mixed mode program (C++/CLR with native code), and i am having the following error while running the program in debug mode. The error is displayed in the Output window. (i'm using Visual C++ 2005).

Although the following error is displayed, the program runs fine. The operation, behaviour of the program is fine in debug and release modes.

The program is a little complicated, it has a main C++/CLI thread (with GUI etc) which calls a native thread which performs some processing using DirectX.

The error is:

First-chance exception at 0x7c812a5b in Scene Configurator.exe: 0x000006EF: A null context handle was passed from the client to the host during a remote procedure call.<br />
First-chance exception at 0x7c812a5b in Scene Configurator.exe: 0x000006A6: The binding handle is invalid.


I am not using any sort of Remote Procedure Call. All i want to know why this error is produced, and how to eliminate it. (Or where to start looking for it)

Another part of the program causes another First-Chance exception, the code is

void Draw_Grid(LPDIRECT3DDEVICE9 g_3Ddevice)<br />
{ <br />
	// Draw Grid<br />
	tVector3 vertData[2]; <br />
	const float fNear = gVar.GridNear;//-500.0f;<br />
	const float fFar = gVar.GridFar;//500.0f;<br />
	const float fStep= gVar.GridStep;<br />
<br />
	for(float i = fNear; i <= fFar; i += fStep)<br />
	{	//x direction<br />
		vertData[0] = tVector3(fNear, 0, i);    <br />
		vertData[0].color = 0xFFD9810E;<br />
		vertData[1] = tVector3( fFar, 0, i);  <br />
		vertData[1].color = 0xFFD9810E; <br />
		g_3Ddevice->DrawPrimitiveUP(D3DPT_LINELIST , 1, &vertData, sizeof( vertData[0] ) );<br />
<br />
		//z direction<br />
		vertData[0] = tVector3(i, 0,fNear);    <br />
		vertData[0].color = 0xFFD9810E;<br />
		vertData[1] = tVector3(i, 0, fFar);  <br />
		vertData[1].color = 0xFFD9810E; <br />
		g_3Ddevice->DrawPrimitiveUP(D3DPT_LINELIST , 1, &vertData, sizeof( vertData[0] ) );<br />
<br />
		// Note:<br />
		// DrawPrimitiveUP causes a C++ Exception error, for unknown reason<br />
	}<br />
}


It seems DrawPrimitiveUp is producing an error of First-chance exception at 0x7c812a5b in Scene Configurator.exe: Microsoft C++ exception: long at memory location 0x04a4f808.. but the drawing of grid (the purpose of this code) is fine. Output of grid on the screen is as desired and the program runs fine. Commenting the DrawPrimitiveUp lines removes this error message. Any idea why?

Thanks.
QuestionException handling Pin
shivapriyak28-Jan-07 18:31
shivapriyak28-Jan-07 18:31 
AnswerRe: Exception handling Pin
Christian Graus28-Jan-07 21:54
protectorChristian Graus28-Jan-07 21:54 
QuestionMy app get's hung up and is not responding. Pin
zoleero28-Jan-07 14:16
zoleero28-Jan-07 14:16 
AnswerRe: My app get's hung up and is not responding. Pin
Christian Graus28-Jan-07 15:02
protectorChristian Graus28-Jan-07 15:02 
GeneralRe: My app get's hung up and is not responding. Pin
zoleero29-Jan-07 2:38
zoleero29-Jan-07 2:38 
GeneralRe: My app get's hung up and is not responding. Pin
Christian Graus29-Jan-07 8:48
protectorChristian Graus29-Jan-07 8:48 
GeneralRe: My app get's hung up and is not responding. [modified] Pin
zoleero6-Feb-07 5:51
zoleero6-Feb-07 5:51 
AnswerRe: My app get's hung up and is not responding. Pin
Michael Dunn28-Jan-07 19:16
sitebuilderMichael Dunn28-Jan-07 19:16 
GeneralRe: My app get's hung up and is not responding. Pin
Christian Graus28-Jan-07 21:52
protectorChristian Graus28-Jan-07 21:52 
Questionpartial class Pin
Bartosz Bien28-Jan-07 6:30
Bartosz Bien28-Jan-07 6:30 
AnswerRe: partial class Pin
George L. Jackson28-Jan-07 7:36
George L. Jackson28-Jan-07 7:36 
GeneralRe: partial class Pin
Bartosz Bien31-Jan-07 4:38
Bartosz Bien31-Jan-07 4:38 
GeneralRe: partial class Pin
George L. Jackson1-Feb-07 5:18
George L. Jackson1-Feb-07 5:18 
GeneralRe: partial class Pin
Bartosz Bien13-Feb-07 10:47
Bartosz Bien13-Feb-07 10:47 
GeneralRe: partial class Pin
George L. Jackson13-Feb-07 12:07
George L. Jackson13-Feb-07 12:07 
AnswerRe: partial class Pin
Christian Graus28-Jan-07 9:46
protectorChristian Graus28-Jan-07 9:46 
GeneralRe: partial class Pin
George L. Jackson28-Jan-07 14:06
George L. Jackson28-Jan-07 14:06 

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.