CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (http://www.cfd-online.com/Forums/fluent-udf/)
-   -   (ACCESS_VIOLATION) when i hook my UDF (http://www.cfd-online.com/Forums/fluent-udf/79134-access_violation-when-i-hook-my-udf.html)

gina August 13, 2010 09:55

(ACCESS_VIOLATION) when i hook my UDF
 
Dear all,
I want to add a new K near the wall with the two low reynolds number (Abe and Chang) available in fluent.
this new k work very well with standard k_e but when I use the two low models ans i hok my UDF, FLUENT received fatal signal (ACCESS_VIOLATION).
please, can some one tell me why?!

thank you

dmoroian August 23, 2010 06:45

Hello Gina,
You don't give too many details so as a short answer: access violation means that you want to use a null pointer, or a pointer to a memory zone that is not allocated. What exactly generated this situation is hard to tell, especially without a sample of the code.
My suggestion is to try to run the udf under a debugger (here is an example how to do it: http://www.cfd-online.com/Wiki/Udf_debug), or at least post the code that makes the trouble.


All times are GMT -4. The time now is 20:02.