DPlot Forum Index DPlot
http://www.dplot.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Web Form using C#

 
Post new topic   Reply to topic    DPlot Forum Index -> C, C++, C#
View previous topic :: View next topic  
Author Message
garumble



Joined: 11 Jun 2009
Posts: 8

PostPosted: Thu Jun 11, 2009 6:36 pm    Post subject: Web Form using C# Reply with quote

I used to be able to plot graphs, but I changed operating systems and it no longer seems to work. I was running under Windows 2000, but now am using Server 2003.

When my code makes the call to the dll, it never returns.

Any ideas on what I can do to troubleshoot this?

DplotJr is installed and runs.
Back to top
View user's profile Send private message
DPlotAdmin
Site Admin


Joined: 24 Jun 2003
Posts: 2310
Location: Vicksburg, Mississippi

PostPosted: Fri Jun 12, 2009 1:32 pm    Post subject: Reply with quote

Try the demo programs distributed with DPlot Jr (in the \DPLOTLIB folder below wherever you installed DPlot Jr). Do those run correctly?
_________________
Visualize Your Data
support@dplot.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
garumble



Joined: 11 Jun 2009
Posts: 8

PostPosted: Sun Jun 14, 2009 1:52 am    Post subject: Web form in C# Reply with quote

All but BTEST2 run. It complains about a missing dll: MSVBVM50.DLL.
Back to top
View user's profile Send private message
DPlotAdmin
Site Admin


Joined: 24 Jun 2003
Posts: 2310
Location: Vicksburg, Mississippi

PostPosted: Sun Jun 14, 2009 8:16 am    Post subject: Reply with quote

That's one of the Visual Basic runtime files, which aren't distributed with DPlot/DPlot Jr. In any case you answered the question: DPLOTLIB.DLL and DPlot Jr do work on your system.

So on to the next question:

"When my code makes the call to the dll, it never returns."

Is your program unresponsive (as in hung up in an endless loop)? Or does it crash? I can't see how the first would happen - the DLL does have a 20-sec timeout period during which DDEML will keep trying to send commands to DPlot until/unless an error is returned (or it has success). But 20-seconds isn't "never". If your program crashes I'd guess that there's something wrong with the interface definitions for DPLOTLIB.DLL, but unless you've done something to change those I can't see this being the problem, either.

You're certainly welcome to send me your source code and I'll take a look at it. Sorry I don't have a quicker/better answer.
_________________
Visualize Your Data
support@dplot.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
garumble



Joined: 11 Jun 2009
Posts: 8

PostPosted: Sun Jun 14, 2009 4:26 pm    Post subject: Reply with quote

It isn't hung in a loop and it doesn't crash. It makes the call to the dll:
DocNum = dplot.DPlot_Plot8(ref dp, ref x[0], ref y[0], cmds);

and never returns. It's very strange.

Eventually the process is killed by the system, but that's literally several minutes.

I can pull together the source code that sets up the arrays and makes the call (you really don't want to see all of it).

Can I post a zip file?
Back to top
View user's profile Send private message
DPlotAdmin
Site Admin


Joined: 24 Jun 2003
Posts: 2310
Location: Vicksburg, Mississippi

PostPosted: Sun Jun 14, 2009 4:53 pm    Post subject: Reply with quote

There's no way to add attachments in the forums. You are welcome to send me whatever you want at support@dplot.com.
_________________
Visualize Your Data
support@dplot.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    DPlot Forum Index -> C, C++, C# All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group