Bin2Var / Var2Bin IDSC

This forum is for general support of Xbase++
Post Reply
Message
Author
bwolfsohn
Posts: 648
Joined: Thu Jan 28, 2010 7:07 am
Location: Alachua, Florida USA
Contact:

Bin2Var / Var2Bin IDSC

#1 Post by bwolfsohn »

We've been chasing this problem for a couple of days now.. I thought i'd throw it out there to see if anyone has any suggestions...

We are getting this error from our xb2net server: (the error is occurring in the xb2net server)

Error Base/5
Internal Data Structures Corrupted bin2var

then various called from lines within our software.

It is crashing on this line on the server side:
oRecord := Bin2Var(oSOAPReq:GetVar('RecordObject'))

This same code is working in our previous versions.
it works intermittently in the beta of our next release.

The same xb2net server responds correctly when we use last year's version (same function, same code)
we've tried the 2 different versions of the xb2net libraries on both the server and client sides. Both have the same results... i.e. works with last year's app, doesn't work with this year's (client) app..

the client side created the var: (same code in both versions)

oRecord := profile->(DC_DbRecord():new())
profile->(DC_DbScatter_trim(oRecord))
oAgent:SetVar("RecordObject", Var2Bin(oRecord) )

Both client and server are using xbase++1.9SL1

we had the same results with this year's version (client side) running under xbase++ 2.0
Any suggestions ??
Brian Wolfsohn
Retired and traveling around the country to music festivals in my RV.
OOPS.. Corona Virus, so NOT traveling right now...
http://www.breadmanrises.com
FB travel group: The Breadman Rises

bwolfsohn
Posts: 648
Joined: Thu Jan 28, 2010 7:07 am
Location: Alachua, Florida USA
Contact:

Re: Bin2Var / Var2Bin IDSC

#2 Post by bwolfsohn »

I think i have the culprit..

Roger made a lot of changes to dc_dbrecord() between version 258 and 261. when i put the 258 version of dc_dbrecord() into our app, everything works...

the 261 version crashes...

Roger,


I'll go over this with you when you get back...
Brian Wolfsohn
Retired and traveling around the country to music festivals in my RV.
OOPS.. Corona Virus, so NOT traveling right now...
http://www.breadmanrises.com
FB travel group: The Breadman Rises

User avatar
rdonnay
Site Admin
Posts: 4728
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Bin2Var / Var2Bin IDSC

#3 Post by rdonnay »

I think it must be related to the fact that i have added methods to dc_dbrecord. I will have to think about this.
The eXpress train is coming - and it has more cars.

bwolfsohn
Posts: 648
Joined: Thu Jan 28, 2010 7:07 am
Location: Alachua, Florida USA
Contact:

Re: Bin2Var / Var2Bin IDSC

#4 Post by bwolfsohn »

rdonnay wrote:I think it must be related to the fact that i have added methods to dc_dbrecord. I will have to think about this.
var2bin creates 2 different size results from the old and new dbrecord..


oRecord := profile->(DC_DbRecord():new())
profile->(DC_DbScatter_trim(oRecord))
oAgent:SetVar("RecordObject", Var2Bin(oRecord) )

xData:=oAgent:GetVar('RecordObject')
xbSaveToFile(xData, "server" + ltrim(str(seconds())) + ".txt", .f.)
Brian Wolfsohn
Retired and traveling around the country to music festivals in my RV.
OOPS.. Corona Virus, so NOT traveling right now...
http://www.breadmanrises.com
FB travel group: The Breadman Rises

Post Reply