Skip to main content
FluidEarth Portal Header version 3

FluidEarth Portal

Go Search
  
FluidEarth Portal > FluidEarth Discussions > Two questions > Two questions  

FluidEarth Discussions: Two questions

Body

hi,
 
yes, you're right; this needs to be set to 'true' to enable you to debug the code. if you're compiling in 'release' and don't want to debug, it should have no effect if it is true or false - so i tend to leave it as 'true' all the time.
 
to me, the fact you can't get rid of the assertion failed dialog suggests there might be an underlying problem with your VS solution; you will need to correct this, as i think you are compiling 'debug' to ..\bin\ but not 'release'. if this is the case, you may be using outdated versions of your dlls, which can become confusing rather quickly.
 
i have put a couple of instructions in the attached pdf to show you how i would check this and also showing you how i debug my FORTRAN code. it is pretty much the same method as Adrian explains in the manual, but perhaps explained slightly differently. it is important to make sure that your breakpoint is somewhere that will definitely be run in your FORTRAN code - if it isn't somewhere that will be run, you will never be able to step into your code.  
 
have a look at the attached pdf and see if it helps - if not, let me know.
 
good luck!
 
gordon
 


 

From: ZZhang
Posted: 15 March 2010 16:57
Subject: Two questions

Hi,Gordon,
 
I am wondering, if I change the value of argument (Key="OpenWEB_SDK_ArgBool.DebugAttacheEngineInitialise") to "False".

Does it affect the result?

From: GGlasgow
Posted: 07 March 2010 08:34
Subject: Two questions

Hi,
 
the first of your issues isn't really a problem - you have compiled your code as 'debug' in visual studio; this 'assertion failed' dialog is your chance to step into the code to debug. there's some advice on this in the manual/guide and if you aren't trying to debug at this time, you can compile your code as 'release' in VS and it shouldn't appear. if you do this and are still having problems, let me know.
i'll put together a sample code that exchanges an array of data that will show you how to solve the second problem. i'll post the code as a second reply.
 
good luck with your wrapping,
 
gordon

From: ZZhang
Posted: 03 March 2010 22:19
Subject: Two questions

Dear,

 

I have two questions as the attachment.
 

If I make you misunderstand, please feel free to contact me.

My email: gulley@163.com

 

I really appreciate if someone can handle these problems for me.

Attachments
Debugging.pdf    
Content Type: Message
Created at 15/03/2010 17:46  by GGlasgow 
Last modified at 15/03/2010 17:46  by GGlasgow