Page 1 of 1

AVS ODBC Question

Posted: Wed Jan 29, 2003 11:46 pm
by Rush
When I start my module up, I'm getting 0 bytes reserved for requests, but 4000+ bytes reserved for responses. This obviously keeps me from asking the Database to store and retrieve info... Any ideas?

Posted: Fri Jan 31, 2003 3:51 pm
by Orleron
Check on the Bioware boards and on the Avlis News forum.

You are most likely calling APS functions in your OnModuleLoad event, which is a no no. The only functions that should be called on load are the ones that set up the database interface. Any other function that you need to call on load should be done via an ExecuteScript function.

Posted: Tue Feb 18, 2003 4:51 pm
by Jason
I had the same problem, but mine said 6 bytes for requests. I went into the aps_include and edited sql_init to fix it.

Basically it looks kind of like this:

Code: Select all

 
for (i=0;i<8;i++)
   nresponse =+"...................................................";
I took it out of the loop, for some reason the loop wasn't working for me

Code: Select all

//for (i=0;i<8;i++)
   nresponse =+"............................................";
   nresponse =+"............................................";
   nresponse =+"............................................";
   nresponse =+"............................................";
   nresponse =+"............................................";
   nresponse =+"............................................";
   nresponse =+"............................................";
   nresponse =+"............................................";
   nresponse =+"............................................";
After I did that it worked for me. I had to do the same thing with the response after awhile too.

Jason

Posted: Tue Feb 18, 2003 7:17 pm
by Papillon
Thanks for the info, Jason.