Talk About Network

Google


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 > Re: mdl debug
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 408 of 473
Post > Topic >>

Re: mdl debug

by olaf.giezenaar@[EMAIL PROTECTED] Oct 26, 2006 at 06:07 AM

Hello

V8 uses much more stack space as V7

In the make file increase the stack size and try angain

it looks like this

$(objDir)$(Prog).mp          : $(objDir)$(Prog).mo
	$(msg)
	>$(objDir)temp.cmd
	-a$@[EMAIL PROTECTED]
(linkOpts)
	$(Objs)
	$(mdlLibs)ditemlib.ml
	<
	$(linkCmd) @[EMAIL PROTECTED]
(objDir)temp.cmd
	~time

The -s clause is the stack size

make it 100 times bigger and it will run

Greetings


MatatunoS schreef:

> 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 Sun Nov 23 5:29:01 CST 2008.