Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Coffee corner » Strange program crash
Re: Strange program crash [message #39176 is a reply to message #39158] Fri, 22 February 2013 20:06 Go to previous messageGo to previous message
deep is currently offline  deep
Messages: 263
Registered: July 2011
Location: Bangalore
Experienced Member
Hi Lance,

Thank you for your response.

Now I converted the Array struct Node Matrix[MAX_COL][MAX_ROW];
to Vector of Node. Changed declaration to

struct Node : Moveable<Node>

and

Vector< Vector<xNode>> Matrix;

This is working. I initialize this in for loop.

Now I have another problem.
Actually I am converting some c code to upp.

code in c
struct node *RowHeader[MAX_ROW];


I have declared it as vector.

Vector<Node> *RootHeader;


Now how do I set size to MAX_ROW for this vector?

I tried

RootHeader->Add() in for loop
(*RootHeader).Add() in for loop
RootHeader->SetCount(MAX_ROW);

What is correct syntax.

Program crashes here with following

Problem signature:
  Problem Event Name:	APPCRASH
  Application Name:	Test1.exe
  Application Version:	0.0.0.0
  Application Timestamp:	5127b75d
  Fault Module Name:	Test1.exe
  Fault Module Version:	0.0.0.0
  Fault Module Timestamp:	5127b75d
  Exception Code:	c0000005
  Exception Offset:	00026a9c
  OS Version:	6.1.7601.2.1.0.256.1
  Locale ID:	2057
  Additional Information 1:	0a9e
  Additional Information 2:	0a9e372d3b4ad19135b953a78882e789
  Additional Information 3:	0a9e
  Additional Information 4:	0a9e372d3b4ad19135b953a78882e789

Read our privacy statement online:
  http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409

If the online privacy statement is not available, please read our privacy statement offline:
  C:\Windows\system32\en-US\erofflps.txt


Warm Regards

Deepak
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: MSVC and code size
Next Topic: NaCl office
Goto Forum:
  


Current Time: Mon Apr 29 02:48:47 CEST 2024

Total time taken to generate the page: 1.99430 seconds