Simulation terminated with exit code: 255, Simulation terminated with exit code: -1073741676

1,670 views
Skip to first unread message

tahir butt

unread,
Oct 25, 2011, 6:13:33 PM10/25/11
to omnetpp
Hi Omnet users and experts,

I am facing the following errors
when the simulation ends

Simulation terminated with exit code: 255, and sometimes this
Simulation terminated with exit code: -1073741676



Is this a problem due to some message which is scheduled or is
undisposed?? I am trying to log the data in the finish method of a
module(into a text file) but I could not find anything in the file. I
do not know where the problem is

Anyone got an idea?


regards,

Tahir

Lia Susana Silva

unread,
Oct 26, 2011, 7:27:18 AM10/26/11
to omnetpp
Hi!

When a simulation (or in general, a program that is running) is ended
with such kind of error codes, is because of some abnormal termination
situation. When in an omnet++ simulation such exit codes appear, it
can either be that a pointer to a non existing memory area has been
directed, or when a never-ending loop has been detected (happens to me
a lot ;), that sometimes I forget to increase the value of a counter
in a while loop, or to generate a condition for the loop to end).

In that case, checking your code for such cases is the way to go. If
you cant find any data in the .log of the simulation, at least to me,
it gives me the clue that the error might be in the initialization,
before I even generate the first "ev<<" in the code. You can start
there :).

Cheers!

Lia.

http://tldp.org/LDP/abs/html/exitcodes.html

Tahir

unread,
Oct 26, 2011, 8:59:00 AM10/26/11
to omn...@googlegroups.com
Thanks Susana for your suggestions,

regards,

Tahir

> --
> Sent from the OMNeT++ mailing list. To configure your membership,
> visit http://groups.google.com/group/omnetpp
>

--

Reply all
Reply to author
Forward
0 new messages