NetTalk Central

Author Topic: Strange behaviour with file upload variables in code (send to Debug)  (Read 4111 times)

Stu

  • Hero Member
  • *****
  • Posts: 510
    • View Profile
    • Email
Hi Bruce/Folks,

Nettalk 8.61, Clarion 10 (second to latest).

Okay, so I'm not sure how long this has been happening, because the issue is in my live system (which have verified after finding it on my dev code).

Basically, it's this:

The file upload path variable (whatever is used) will not output to OutputDebugString().

I think.

Explanation:

I've got a file form from which the user can select and upload a file. On ValidateAll, the code checks and moves and assigns the upload file.

It's working great!

Except that my Debug() statements referencing the variable (in this case it's a local variable, say loc:UploadPath) don't show on DebugView (SysInternals).

Here's some example code that no longer works, where loc:UploadPath is the variable being used by the nettalk file upload field, and this code is run in the ValidateAll routine, in the end embed:

Code: [Select]
Debug('** loc:UploadPath: '&clip(loc:UploadPath))
Now, more explanation.

I've got a function called Debug(). This has two purposes. It outputs to OutputDebugString (ie, sends to DebugView) AND it writes to a text log file.

Here's the kicker - the information in the log file is working fine, it logs the variable value without a problem (and showing all symbols in notepadd++ doesn't reveal any unreadables that might kick up a stink).

Last, my Debug() code works fine for any variable that isn't being used by a file upload field.

IE

Let's say I have another local variable, loc:Test (string).

Code: [Select]
loc:Test = 'c:\myprogram\rugby.pdf'
Debug('** loc:Test: '&clip(loc:Test))

This works fine, no worries.

Last #2 - the file upload variables can still be used in code, and they work fine. IE, code that gets the values, moves the actual file, puts it into other variables.

I really haven't got a clue yet as to why File Upload would have anything to do with it. It might not, on the chance I've missed something else.

But as of now, my only clues are that the issue only exhibits, that I know, when file upload fields are being sent to Debug().

Anyone got any idea on this one?
Cheers,

Stu Andrews

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Strange behaviour with file upload variables in code (send to Debug)
« Reply #1 on: November 01, 2015, 10:40:21 PM »
my guess is a filter you have set in debugview.

PS - I recommend Debugview++ as and update. It makes it a lot easier to highlight and filter things by right-clicking on some selected text in the viewer.

Cheers
Bruce
https://debugviewpp.wordpress.com/2014/01/04/7/

Stu

  • Hero Member
  • *****
  • Posts: 510
    • View Profile
    • Email
Re: Strange behaviour with file upload variables in code (send to Debug)
« Reply #2 on: November 08, 2015, 09:46:29 PM »
Ahhh, thanks Bruce, fantastic stuff (both things)!
Cheers,

Stu Andrews