Pages: [1]
  Print  
Author Topic: UL/DL Plugin and loadVariables  (Read 2966 times)
0 Members and 1 Guest are viewing this topic.
jantsuh
Newbie
*
Posts: 43


« on: 12 August , 2009, 00:31:40 »

Dear Forum Members,

I have faced a weird issue while using KuneriLite UL/DL plugin for both downloading files and making loadVariables web requests. If I attempt to make a download request (../uldl?klCommand=download) after any ../uldl?klCommand=loadVariables call, download request always returns klError=-11 (Transaction ID already exists and transaction is active). However, according to the documentation of klCommanD=loadVariables there is no need to specify transaction ID.

Is there still some relation between transaction IDs and klCommanD=loadVariables? All my download requests are working really fine until I try to make the first klCommanD=loadVariables. After that, whole UL/DL plugin seems to become instable and gives error values (mostly klError=-11). I have tried to make loadVariables("http://127.0.0.1:1001/mykey/uldl?klCommand=exit", "") call after klCommand=loadVariables but it does not seem to help.

Could you please give me some information how to make klCommanD=loadVariables and klCommand=download work together!? Thank you for your help in advance.
Logged

Free off-road GPS navigation in Finland. Available for S60 phones. Check out: http://www.karttaselain.fi
KL Admin
Moderator
Sr. Member
*****
Posts: 313


« Reply #1 on: 12 August , 2009, 23:23:50 »

Hi Jantsu,

klTrId isn't required with klCommand=loadVariables. I haven't faced -11 with loadVariables command, might it be that -11 is response to some else command instead?

There is klfwBasic.txt trace file in the public version of KuneriLite, you might wan't to check that for requests/responses Wink

-Jukka
Logged
jantsuh
Newbie
*
Posts: 43


« Reply #2 on: 15 August , 2009, 21:47:26 »

It seems to me that klCommand=loadVariables is the only call that causes confusion to the download calls. If I simply replace or remove  klCommand=loadVariabiles calls, there is no issues.
Logged

Free off-road GPS navigation in Finland. Available for S60 phones. Check out: http://www.karttaselain.fi
KL Admin
Moderator
Sr. Member
*****
Posts: 313


« Reply #3 on: 18 August , 2009, 10:34:42 »

Hi,
can you post the whole command please?
With AS 1 it is pretty easy to get weird problems with loadVariables..
Logged
jantsuh
Newbie
*
Posts: 43


« Reply #4 on: 31 August , 2009, 04:52:00 »

I was finally able to solve this issue. This was caused by handling OnData event handlers of my LoadVars objects. The issue was corrected by switching to LoadVars::OnLoad event handlers.
Logged

Free off-road GPS navigation in Finland. Available for S60 phones. Check out: http://www.karttaselain.fi
Pages: [1]
  Print  
 
Jump to: