1. Beatrix Willius
  2. Valentina Database ADK
  3. Thursday, April 21 2016, 06:07 AM
  4.  Subscribe via email
After the fun I've had with the change from UTF8 to UTF16 default encoding I've got 99,99% covered. Recently I found the above error string in a Valentina log. But I have no clue how to find the offending string. I've asked the Valentina guys to give me some more information (table name, RecID, something). But they think that I should be easily find the root cause of this.

I've just checked my code and I'm using SetString 66 times in my code. And no, it's not easy to find the offending string.

Is it really so hard to give more information in the log? Even the offending string or the beginning of the offending string would help.

Are there any other ideas how I could debug this? My app is usually doing GBs of data.
Comment
There are no comments made yet.
Ruslan Zasukhin Accepted Answer
Hi Beatrix,

Can you copy paste here part of log, few lines near that message.

When you have VerboseLevel = 3 you must be able see names of each method, and its parameters and values. This not helps detect place ?
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Database ADK
  3. # 1
Ruslan Zasukhin Accepted Answer
I think we cannot give RecID, because if you only adding record, then RecID not exists yet, but V4RB will refuse that string ...
On the other hand, if you do AddRecord() it returns RecID, which you must see in the log,

May be you use SQL INSERT ...

Anyway lets at first see what method is called, when this warning is produced.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Database ADK
  3. # 2
Beatrix Willius Accepted Answer
Took me a while to find data again with this problem. VerboseLevel 3 is not very useful because produces large files and it doesn't contain the same error message like the lower VerboseLevel does.

Any other idea how to find the offending string? Please implement something for my feature request: http://www.valentina-db.com/bt/view.php?id=7575 .

Mit freundlichen Grüßen/Regards

Beatrix Willius

http://www.mothsoftware.com
Mail Archiver X: The email archiving solution for professionals
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Database ADK
  3. # 3
Beatrix Willius Accepted Answer
I can't find any problematic strings. Did the following:

- Added Nil checks when writing to the database

 if MailFields.ResentCC.Encoding = Nil then Break


No result.

- Since there are no timestamps in the Valentina logs I slowed down adding data to the database with app.SleepCurrentThread(1000) and identified the record where the Valentina log is created. But still I get nothing. All strings have an encoding. Checking the record in my app doesn't show any chinese characters.

What now? At the moment I'm not too worried about the data but I'd like to fix this. At least give me some timestamps and add the information about the missing encoding in the more detailed logs.

Mit freundlichen Grüßen/Regards

Beatrix Willius

http://www.mothsoftware.com
Mail Archiver X: The email archiving solution for professionals
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Database ADK
  3. # 4
Ruslan Zasukhin Accepted Answer
Hi Trixi,

well, we have discuss this and have come to the next point:

1) we will implement fall-back to UTF8 for strings for such undefined-encoding strings.
So it will works as in the past before v6.3, when we have switched to new SDK

2) LATER, if anybody will report troubles because of this,
we will be able add global V4RB property
FallbackEncoding = "UTF8", so developer will be able set it e.g. to UTF16.

We will do this for the next hot-fix.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Database ADK
  3. # 5
Beatrix Willius Accepted Answer
Very good :) :)
Still, timestamps in your logs would be good.

Mit freundlichen Grüßen/Regards

Beatrix Willius

http://www.mothsoftware.com
Mail Archiver X: The email archiving solution for professionals
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Database ADK
  3. # 6
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Categories

Announcements & News
  1. 0 subcategories
Valentina Studio
  1. 2 subcategories
Valentina Server
  1. 4 subcategories
Valentina Database ADK
  1. 0 subcategories
Valentina Reports ADK
  1. 0 subcategories
Other Discussions
  1. 2 subcategories
BETA Testing
  1. 0 subcategories
Education & Research
  1. 0 subcategories