Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / CodeWarrior / July 2003



Tip: Looking for answers? Try searching our database.

Strange CW behavior ?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Stephane Pinel - 27 Jul 2003 00:52 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.