Forum: C++ Jan 9th, 2009 |
| Replies: 11 Views: 539 I found the way that works but it is not a correct solution.
When changing
Rules[this->RuleNum]->min->MembraneOut[0]=A.min.MembraneOut[0];
into a
... |
Forum: C++ Jan 9th, 2009 |
| Replies: 11 Views: 539 Here Genome is creat6ed:
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
Genome=new(RuleSet);
}
I've tracked it through a constructor - everything's OK. |
Forum: C++ Jan 8th, 2009 |
| Replies: 11 Views: 539 watches also told me that in function in question
this = NULL
That's supposed to be a member function!
I just don't get it... |
Forum: C++ Jan 8th, 2009 |
| Replies: 11 Views: 539 No It wouldn't.
Rules[SomeInt] is a class, not a pointer to one. |
Forum: C++ Jan 8th, 2009 |
| Replies: 11 Views: 539 class Rule
{
public:
LivingCell min;
LivingCell max;
LivingCell IgnoredParametres;
int Action;
int Parameter;
};
// ------------------- Класс "Генотип" ----------------- |
Forum: C++ Jan 8th, 2009 |
| Replies: 11 Views: 539 Well I did like you told, but still it doesn't work.
And using watches I found that
RuleNum's value is ???? (four question marks
) |
Forum: C++ Jan 8th, 2009 |
| Replies: 11 Views: 539 I've got an array of pointers to my class "Rule" Now I'm trying to access it from within a member function AddRule. But on the first line I keep getting "Memory Access Violation"
Can anyone tell... |
Forum: C++ Jan 7th, 2009 |
| Replies: 2 Views: 797 I quite don't get it!
I've got a memory access violation on a perfectly normal code string. Error occurs when starting the application. I can click continiuse and everything goes on ok.
And more.... |