Click here to Skip to main content
15,922,696 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to restart MFC application from within itself Pin
toxcct4-Jan-07 1:21
toxcct4-Jan-07 1:21 
GeneralRe: How to restart MFC application from within itself Pin
Hamid_RT4-Jan-07 1:42
Hamid_RT4-Jan-07 1:42 
GeneralRe: How to restart MFC application from within itself Pin
toxcct4-Jan-07 6:31
toxcct4-Jan-07 6:31 
AnswerRe: How to restart MFC application from within itself Pin
2249174-Jan-07 0:43
2249174-Jan-07 0:43 
General[Off topic] Pin
toxcct4-Jan-07 1:22
toxcct4-Jan-07 1:22 
GeneralRe: [Off topic] Pin
2249174-Jan-07 1:35
2249174-Jan-07 1:35 
GeneralRe: [Off topic] Pin
toxcct4-Jan-07 6:30
toxcct4-Jan-07 6:30 
AnswerRe: How to restart MFC application from within itself Pin
Peter Wucherer4-Jan-07 1:01
Peter Wucherer4-Jan-07 1:01 
AnswerRe: How to restart MFC application from within itself Pin
Sumesh V.V4-Jan-07 17:08
Sumesh V.V4-Jan-07 17:08 
GeneralRe: How to restart MFC application from within itself Pin
Vinod Moorkkan4-Jan-07 17:32
Vinod Moorkkan4-Jan-07 17:32 
Questionchinese strings in String Table Pin
kiranin4-Jan-07 0:19
kiranin4-Jan-07 0:19 
AnswerRe: chinese strings in String Table Pin
2249174-Jan-07 0:47
2249174-Jan-07 0:47 
GeneralRe: chinese strings in String Table Pin
kiranin4-Jan-07 0:52
kiranin4-Jan-07 0:52 
AnswerRe: chinese strings in String Table Pin
Pradeep.Reddy4-Jan-07 6:41
Pradeep.Reddy4-Jan-07 6:41 
AnswerRe: chinese strings in String Table Pin
Mark Salsbery4-Jan-07 7:02
Mark Salsbery4-Jan-07 7:02 
AnswerRe: chinese strings in String Table Pin
Hamid_RT4-Jan-07 17:59
Hamid_RT4-Jan-07 17:59 
QuestionQuestion: Unhandled Exception on exit Pin
zqueezy3-Jan-07 23:57
zqueezy3-Jan-07 23:57 
heyhey
wow, I love this forum! hopefully someone can help with my question:
I, like many else, try to write a stable math library in VC++.
unfortunately my vector struct makes some trouble so here's the code:

...
__declspec(align(16)) union vector4{<br />
	__m128 m128;<br />
	struct {	<br />
		float x,y,z,w;<br />
	};<br />
	float  f[4];<br />
};<br />
<br />
...<br />
int main()<br />
{<br />
  vector4 a;<br />
  a.x = 1.0f; a.y = 0.0; a.z = 0.0; a.w = 1.0;<br />
  vector4 b = {1.0f, 0.0f, 0.0f, 1.0f};<br />
  a.f[0] = 1.0f; a.f[1] = 0.0f; a.f[2] = 0.0f; a.f[3] = 1.0f;<br />
  return 0;<br />
}<br />


any of those lines work fine but on exiting I get a
"Unbehandelte Ausnahme bei 0x004117a7 in MatheFunktionen.exe: 0xC0000005: Zugriffsverletzung beim Lesen an Position 0x00000800."
<=>
"unhandled exception at0x004117a7 in MathFunctions.exe: 0xC0000005: Access violation while reading at position 0x00000800."

Removing the declarations a = ... a.x =... and stuff solves the problem. Do I have to free the memory of a before quitting?

I'm using Visual Studio 2005 8.0.50727.42
any help is apprecitated

zqueezy

PS: I already googled and searched the forum but couldn't find a solution, so links would be appreciated, too
AnswerAdd Pin
zqueezy4-Jan-07 0:32
zqueezy4-Jan-07 0:32 
AnswerRe: Question: Unhandled Exception on exit Pin
prasad_som4-Jan-07 0:44
prasad_som4-Jan-07 0:44 
GeneralRe: Question: Unhandled Exception on exit Pin
zqueezy4-Jan-07 1:36
zqueezy4-Jan-07 1:36 
GeneralRe: Question: Unhandled Exception on exit Pin
prasad_som4-Jan-07 1:41
prasad_som4-Jan-07 1:41 
QuestionCPU time Pin
vc++_fragrance3-Jan-07 23:13
vc++_fragrance3-Jan-07 23:13 
AnswerRe: CPU time Pin
Hamid_RT3-Jan-07 23:30
Hamid_RT3-Jan-07 23:30 
GeneralRe: CPU time Pin
vc++_fragrance3-Jan-07 23:38
vc++_fragrance3-Jan-07 23:38 
GeneralRe: CPU time Pin
Hamid_RT3-Jan-07 23:44
Hamid_RT3-Jan-07 23:44 

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.