The answer on Appajee's message.

 

I have compiled 'driver' with MSVS.NET2005 and memory allocation problem
has occurred. But It take place in debug mode (when I press 'F5'). If I
compile program and execute it by running .exe file or pressing
'CTRL+F5', 'driver' and my own program execute without errors. In
'driver' project properties C/C++ -> Code Generation -> Basic Runtime
Checks has been set to 'default', in my project to 'Both (/RTC1, equiv.
to /RTCsu)'. My program run without errors (in non-debug mode, of cause)
when I changed my properties like 'driver'. 

If I comment all except the QualifierStruct's initialization and ARFree,
I get the same error. It's all the same.

 

I will use my own free function or use both functions in the following
way for example:

 

   #ifndef FREE_AR

      free(qualifier.u.andor.operandLeft->u.relOp);

      free(qualifier.u.andor.operandRight->u.relOp);

      free(qualifier.u.andor.operandLeft);

      free(qualifier.u.andor.operandRight);

   #else

      FreeARQualifierStruct(&qualifier, FALSE);

   #endif

 

Answer to Dan.

 

I don't want to use new/delete because program will be less
cross-platform. And I don't know where I can know how to define
'structure byte alignment' from?


_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the 
Answers Are"

Reply via email to