Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Computer Aided Design - CAD > Programming with Microstation > mdl debug
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 408 of 451
Post > Topic >>

mdl debug

by "MatatunoS" <matatunos@[EMAIL PROTECTED] > Oct 10, 2006 at 02:33 AM

hi, i'm trying to debug a microstation v7 to v8 application, but i'm
having problems wen running the .mc, it's about a stack overflow at
runtime, but i can't find where is it, my code is this

(i use the spanish version of microstation 08.05.02.35 that is the same
that uses the person who will use the mdl program)

mdb>
go
MDL ha detectado desbordamiento de pila
"cperf.mc"getPointsDGNP
  483:         boolean encontrado=FALSE;
mdb>

(it means a stack overflow at line 483)

the function looks like this

Private int getPointsDGNP(ListPoints *listPoints,DPoint3d
*lineAux,double xP)
{

        ExtScanlist  scanList;
        ULong     elemAddr[50], filePos;
        int       fileNum, i, j, numAddr, scanWords, vertices,
scan_status,
numPoints;
        double  distLine, distLineCorte;
        long int        mslink;
        char    selec[255], fcode[40], aux[30], label[30];
        int             num_atr;
        UInt32  fcolor;
        int             baseenlace;
        boolean encontrado=FALSE;
        int             flevel, fstyle;
        UInt32  fweight;
        int             efeature;
        Dvector3d       limite;
        MS_sqlda  sel_desc;
        DPoint3d        line[MAX_VERTICES], corte, currentline[2];
        FILE            *debug;
        DPoint3d  origen,final;
        short   atributos[MAX_ATTRIBSIZE];

        mdlScan_initialize(ACTIVEMODEL,&scanList);

is there another program to help debugging mdl programs other than the
one that comes with microstation? how can i get it?

thankyou




 2 Posts in Topic:
mdl debug
"MatatunoS" <  2006-10-10 02:33:21 
Re: mdl debug
olaf.giezenaar@[EMAIL PRO  2006-10-26 06:07:03 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 4 14:06:12 CDT 2008.