Click here to Skip to main content
15,902,198 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Error 87, ERROR_INVALID_PARAMETER , has to do with the volume's sector size. Pin
Richard MacCutchan5-May-10 3:30
mveRichard MacCutchan5-May-10 3:30 
GeneralRe: Error 87, ERROR_INVALID_PARAMETER , has to do with the volume's sector size. Pin
Joe Woodbury5-May-10 18:52
professionalJoe Woodbury5-May-10 18:52 
GeneralRe: Error 87, ERROR_INVALID_PARAMETER , has to do with the volume's sector size. Pin
Richard MacCutchan5-May-10 21:19
mveRichard MacCutchan5-May-10 21:19 
GeneralRe: Error 87, ERROR_INVALID_PARAMETER , has to do with the volume's sector size. Pin
Fareed Rizkalla5-May-10 9:05
Fareed Rizkalla5-May-10 9:05 
AnswerRe: WriteFile / CreateThread Pin
Joe Woodbury5-May-10 18:43
professionalJoe Woodbury5-May-10 18:43 
QuestionMemory read - write error Pin
İsmail Kurnaz4-May-10 22:33
İsmail Kurnaz4-May-10 22:33 
AnswerRe: Memory read - write error Pin
Code-o-mat4-May-10 22:47
Code-o-mat4-May-10 22:47 
GeneralRe: Memory read - write error Pin
İsmail Kurnaz4-May-10 23:13
İsmail Kurnaz4-May-10 23:13 
Hi,

Program running without any error since the line:

dCreateAgent->dFollowAgent= new FollowAgent(...);

I think the problem is about usage of "dCreateAgent->dFollowAgent". I have 3 couples of files.
1. followagent.cpp and followagent.h consist of FollowAgent class.
2. createagent.cpp and createagent.h consist of CreateAgent class.
3. driveagent.cpp and driveagent.h consist of DriveAgent class.

class FollowAgent

class CreateAgent
{
FollowAgent* dFollowAgent
}

class DriveAgent
{
dCreateAgent = new CreateAgent(...);
...........
dCreateAgent->dFollowAgent= new FollowAgent(...);
}

When my program dies, an error window occur. It consist of a message as "An unhandled exception of type 'System.AccessViolationException' occurred in TrafficSim.exe
Additional information: Attempted to read or write protected memory. This is often an indication that other memory is corrupt."

Thanks your reply and I wait another
GeneralRe: Memory read - write error Pin
Code-o-mat4-May-10 23:18
Code-o-mat4-May-10 23:18 
QuestionIntel Compiler IA-32 11.0.061 installation question Pin
Chesnokov Yuriy4-May-10 20:15
professionalChesnokov Yuriy4-May-10 20:15 
AnswerRe: Intel Compiler IA-32 11.0.061 installation question Pin
CPallini4-May-10 21:17
mveCPallini4-May-10 21:17 
AnswerRe: Intel Compiler IA-32 11.0.061 installation question Pin
Richard MacCutchan4-May-10 21:19
mveRichard MacCutchan4-May-10 21:19 
GeneralRe: Intel Compiler IA-32 11.0.061 installation question Pin
Fareed Rizkalla5-May-10 0:10
Fareed Rizkalla5-May-10 0:10 
GeneralRe: Intel Compiler IA-32 11.0.061 installation question Pin
Richard MacCutchan5-May-10 0:47
mveRichard MacCutchan5-May-10 0:47 
Questionhow to create dialogs in Console application Pin
manoharbalu4-May-10 19:16
manoharbalu4-May-10 19:16 
AnswerRe: how to create dialogs in Console application Pin
Cedric Moonen4-May-10 20:14
Cedric Moonen4-May-10 20:14 
GeneralRe: how to create dialogs in Console application Pin
manoharbalu4-May-10 20:42
manoharbalu4-May-10 20:42 
GeneralRe: how to create dialogs in Console application Pin
Fareed Rizkalla5-May-10 0:11
Fareed Rizkalla5-May-10 0:11 
AnswerRe: how to create dialogs in Console application Pin
Stephen Hewitt4-May-10 20:30
Stephen Hewitt4-May-10 20:30 
GeneralRe: how to create dialogs in Console application Pin
manoharbalu4-May-10 20:46
manoharbalu4-May-10 20:46 
GeneralRe: how to create dialogs in Console application Pin
Software_Developer4-May-10 22:18
Software_Developer4-May-10 22:18 
QuestionRe: how to create dialogs in Console application Pin
David Crow5-May-10 3:01
David Crow5-May-10 3:01 
AnswerRe: Yes Pin
Software_Developer5-May-10 6:41
Software_Developer5-May-10 6:41 
GeneralRe: how to create dialogs in Console application Pin
Stephen Hewitt5-May-10 14:13
Stephen Hewitt5-May-10 14:13 
AnswerRe: how to create dialogs in Console application Pin
Richard MacCutchan4-May-10 21:22
mveRichard MacCutchan4-May-10 21:22 

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.