Floats generating unexpected Output in SOAP-Answer

VA Smalltalk is a "100% VisualAge compatible" IDE that includes the original VisualAge technology and the popular VA Assist and WidgetKit add-ons.

Moderators: Eric Clayberg, wembley, tc, Diane Engles, solveig

Floats generating unexpected Output in SOAP-Answer

Postby bonndias » Wed Jun 03, 2009 4:15 am

Hi,
in our headless packaged WebService application part of the answer is an Array of Floats. The application is running on Windows and when we look at the console output we see lots of lines like this:

floatTrunc: floorIn=0.490274 floorOut=0.000000 integer=0
floatTrunc: floorIn=154.000000 floorOut=154.000000 integer=154
floatTrunc: floorIn=154.000000 floorOut=154.000000 integer=154
floatTrunc: floorIn=154.000000 floorOut=154.000000 integer=154
floatTrunc: floorIn=154.000000 floorOut=154.000000 integer=154
floatTrunc: floorIn=154.000000 floorOut=154.000000 integer=154
floatTrunc: floorIn=154.000000 floorOut=154.000000 integer=154


This oputput seems not to be part of our code, but we can't find the place in VA, where this output is generated. The large amount of output slows down out application.

Regards, bonndias
bonndias
 
Posts: 16
Joined: Mon Jun 09, 2008 4:15 am

Re: Floats generating unexpected Output in SOAP-Answer

Postby wembley » Wed Jun 03, 2009 5:27 am

There was a problem with the initial VA Smalltalk 7.5.2 VM on Windows (a bit of debug code was left in). The VA Smalltalk 7.5.2 Windows download packages were refreshed with the corrected VM. So, since you are not seeing this problem at development time, I must assume that your deployment (bad) esvm40.dll is different from your development (good) esvm40.dll.

You should be able to copy your development VM into your deployment package to correct the problem. However, if it is easier for you, I have attached a zip file with the corrected VM.
Attachments
esvm40.zip
VA Smalltalk V7.5.2 Windows VM (esvm40.dll)
(254.28 KiB) Downloaded 58 times
John O'Keefe [|], Principal Smalltalk Architect, Instantiations Inc.
wembley
Moderator
 
Posts: 405
Joined: Mon Oct 16, 2006 3:01 am
Location: Durham, NC

Re: Floats generating unexpected Output in SOAP-Answer

Postby bonndias » Wed Jun 03, 2009 6:39 am

Thanks a lot. That improved our performance!

Regards, bonndias
bonndias
 
Posts: 16
Joined: Mon Jun 09, 2008 4:15 am


Return to VA Smalltalk 7.0, 7.5 & 8.0

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest