NetTalk Central

Author Topic: Draw (Graph) crashes my web server  (Read 3348 times)

Jane

  • Sr. Member
  • ****
  • Posts: 372
  • Expert on nothing with opinions on everything.
    • View Profile
    • Email
Draw (Graph) crashes my web server
« on: February 09, 2023, 02:52:55 PM »
Subtitle - is there a way I'm missing to override Draw's drwGetTempPath? 

It's presently calling GetTempPathA.

I added a graph to a nettalk app, copying one of the examples.
Works fine on my development machine.

Works fine on server when running as a service or run asAdministrator.

Crashes on server when not running as a service when I run the graph procedure.  Error (shown in pic) says it's trying to create DrawStore.tmp in a folder that does not exist.

Yes, the app is mostly running as a service.  And then it runs fine (using the windows\temp folder).

Or I can manifest the app with a requireAdministrator manifest and it works running as an exe on the server.  But then I have to click through the UAC popup on my dev machine each time I compile and run.

It may just be that something is bolluxed on the server.  SET says "my" temp path ends with \6
But that folder doesn't exist.
The GUI says my user's temp path just ends with \temp.

But this all seems rather fragile.  It would be nice to have an option to tell Draw where to do its thing and not to encounter some servers where it can't make its temp folder work.

(Until, of course, NT 14's javascript graphs!)

Cheers,

Jane, writer of hyperbolic subject lines


Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Draw (Graph) crashes my web server
« Reply #1 on: February 10, 2023, 05:53:49 AM »
>> But this all seems rather fragile.  It would be nice to have an option to tell Draw where to do its thing and not to encounter some servers where it can't make its temp folder work.

I concur, but for now you'd need to change the code inside draw.clw to do that.

The draw object inside Insight is a pointer, so it's tricky to override a method in a a composited class like this. Do'able, but risky.

For now modifying the code in draw.clw seems like the way to go.

Cheers
Bruce

Jane

  • Sr. Member
  • ****
  • Posts: 372
  • Expert on nothing with opinions on everything.
    • View Profile
    • Email
Re: Draw (Graph) crashes my web server
« Reply #2 on: February 10, 2023, 01:06:10 PM »

For now modifying the code in draw.clw seems like the way to go.


Sounds good.  Draw doesn't get updated very often. 
I made a copy for this app and changed one line of code in draw.clw.  Works fine.

Thanks, Bruce.

Jane