have a project using CW 8.3 that compiles OK. When running I get an
error. But when I debug, I don't get this error. This is a Sybase Open
Client context allocation process :
---------- CS_CONTEXT *context; CS_
RETCODE ret;
context = (CS_CONTEXT *)NULL;
ret = cs_ctx_
alloc(EX_CTLIB_VERSION, &context);
if(ret == CS_SUCCEED){
printf(
"Allocated Context...\n");
}else{
printf("Context Alloc failed...\n");
}
----------
When I'm running normaly the program, ret is never equal to CS_SUCCEED.
When I'm running in debug mode, ret is always equal to CS_SUCCED. The
error code returned when running normally is CS_MEM_ERROR means memory
error...
Any idea ?
Regards.
Stéphane
Stephane Pinel - 27 Jul 2003 17:39 GMT
It seems to be Environment Variables related: When I set up manually
these variables in the Terminal, then I "open MyApp.app" from the
Terminal, everything is OK. If I double-click on MyApp.app or if I run
it from CW, I get this error (except in debug mode). So my environment
variables are not setting up despite the fact that I have entered them
in the Runtime Settings (Environment Settings) panel in CW.
But in debug mode from CW, it runs...
Is there something else to take care of in the settings in order to set
up properly these environment variables ?
Thanks !
Stephane Pinel
> have a project using CW 8.3 that compiles OK. When running I get an
> error. But when I debug, I don't get this error. This is a Sybase Open
[quoted text clipped - 24 lines]
>
> Stéphane