[Omnetpp-l] Error out of range

1,245 views
Skip to first unread message

ZOHA ASGHARIAN

unread,
Apr 20, 2010, 10:06:16 AM4/20/10
to omnetpp
Dear all,

When I run omnetpp.ini, it gets this error

Error------->Gate index0 out of range when accessing vector gate 'in[]' with size 0

Please help me
Thanks in advance

--
Best Regards
---
Zoha Asgharian,
Master of Science in Engineering,
 Department of Computer Engineering,
Iran University of Science and technology

--
You received this message because you are subscribed to the Google Groups "omnetpp" group.
To post to this group, send email to omn...@googlegroups.com.
To unsubscribe from this group, send email to omnetpp+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/omnetpp?hl=en.

ZOHA ASGHARIAN

unread,
Apr 22, 2010, 6:01:08 AM4/22/10
to omnetpp
Hi,

I use "++" for it

ZOHA ASGHARIAN

unread,
Apr 29, 2010, 2:51:15 AM4/29/10
to omnetpp
Hello all,

I use follow instruction, but when I run it, it gets error "Gate index 0 out of range when accessing vector gate  transportOut[] with size 0"


output transportOut[];
numOfTransportProt = numOfTransportProt;

for i=0..numOfTransportProt-1
{
      core.transportOut[i] --> transportOut[i];

}

Please help me
Thanks in advance


Patrick Haeflinger

unread,
Apr 29, 2010, 3:04:49 AM4/29/10
to omn...@googlegroups.com
Hi,

As this is not the complete code of your ned file I can only guess that you missed to define the gate size somewhere in you ned code

Patrick


ZOHA ASGHARIAN a écrit :

ZOHA ASGHARIAN

unread,
Apr 29, 2010, 3:11:59 AM4/29/10
to omn...@googlegroups.com
Thanks Patrick,
it is my ned, I cant solve my problem,
PLZ help me

network LocalDeliver
{
    parameters:
        double procdelay;
        double numOfTransportProt;
        string hookName;
        string fragmentTimeout;
        @display("p=10,18;b=202,224,rect;bgb=132,172");
    gates:
        input routingIn;
        input multicastIn;
        output multicastOut;
        output ICMPOut;
        output preRoutingOut;
        output transportOut[];
    submodules:
        core: LocalDeliverCore {
            parameters:
                procdelay = procdelay;
                numOfTransportProt = numOfTransportProt;
                fragmentTimeout = fragmentTimeout;
                @display("p=62,121;b=40,24,rect");
            gates:
                transportOut[numOfTransportProt];

        }
        queueHook: NF_IP_LOCAL_IN {
            @display("p=62,49;b=40,24,rect");
        }

    connections:
        routingIn --> core.routingIn;
        multicastIn --> core.multicastIn;
        core.multicastOut --> multicastOut;
        core.ICMPOut --> ICMPOut;
        core.preRoutingOut --> preRoutingOut;
        core.netfilterOut --> queueHook.in;
        queueHook.out --> core.netfilterIn;

Andras Varga

unread,
Apr 29, 2010, 3:49:29 AM4/29/10
to omn...@googlegroups.com

Dear Zoha,

 

If I understand correctly, you have been trying to port the very old and completely outdated IPSuite to OMNeT++ 4.0. This looks utterly and completely useless to me. We do have a good TCP/IP suite, it is called the INET Framework. It has evolved from the very IPSuite that you are hacking, over years, with lots of hard work invested into its development. So, what's the point of hacking IPSuite, really???

 

OK, looks like you want to use the SIP model that comes with IPSuite. Fine, so why don't you just port the SIP model itself into the INET Framework? That, apart from being a lot less work, would actually be useful for the community as well. The path you're currently following leads nowhere – I sincerely suggest that you download the INET Framework, and try to port SIP into that.  I am sure everyone would help be better inclined to help you then.

 

As for "gatesizes" and other problems: the Migration Guide is your friend. Open http://omnetpp.org/doc/omnetpp40/migration/migration.html, hit Ctrl+F and type "gatesizes". Thanks!

 

Regards,

Andras

ZOHA ASGHARIAN

unread,
Apr 29, 2010, 7:29:16 AM4/29/10
to omn...@googlegroups.com
Dear Andras,

It is true i guess you hit. I follow your suggestion
Thanks a lot

Pushkal Shukla

unread,
Feb 18, 2021, 11:55:25 PM2/18/21
to OMNeT++ Users
I am getting the same error while working on a Project on my Windows Operating System using INET framework .
pls find below attachment for details.
I would be highly obliged if this could be resolved .
Anticipating Favourable Response

WhatsApp Image 2021-02-16 at 1.08.46 PM.jpeg

Pushkal Shukla

unread,
Feb 19, 2021, 12:30:43 AM2/19/21
to OMNeT++ Users
I am getting the same error while working on my Windows operating system using INET framework . 
pls find below attachment for details.
I would be highly obliged if this could be resolved as soon as possible
Anticipating Favourable Response


On Tuesday, April 20, 2010 at 7:36:16 PM UTC+5:30 Zoha wrote:
error.jpeg
Reply all
Reply to author
Forward
0 new messages