09-14-2015 03:55 AM
Following this suggestion from the community I wrote an application which basically works, but as I've already written in the comments on the community page, the first time I call OpenRead, it is really slow.
I think this is what described in several web pages (see here, or here, for example).
In the C# examples the solution is to set WebClient.Proxy, but the problem is that I can't find a function to set this inside CVI .NET Wrapper for system.dll.
I see a lot of functions System_Net_WebClient_xxxxxx but I can't find any function to set the proxy.
Could someone help me?
09-15-2015 03:01 AM
Hi vix,
can't you use this function: https://msdn.microsoft.com/en-us/library/system.net.webclient.proxy(v=vs.110).aspx and put it in a .NET wrapper in CVI?
09-15-2015 03:10 AM
I've already tried but when I create a .NET wrapper for system.dll, under System.NET.IWebProxy I only see
so, no function to set the proxy
Did you successfully create a .NET wrapper which shows "Set Proxy" functions?
Could you give me some detail on how you did it?
09-15-2015 04:01 AM
No, I'm not able to create it. Did you try flagging IsBypassed to true?
09-15-2015 05:02 AM
The problem is how to create a System_Net_IWebProxy handle to pass to IsBypassed.
Where is the System_Net_IWebProxy constructor?
Is there a "search" feature for fp trees?
09-15-2015 08:56 AM
It could be a problem of compatibility with the .NET Framework version. I have the same issue with LabVIEW as well, I just cannot find that class. Or maybe not all the classe inside the System.Net Namespace are visible in LabVIEW/CVI. Not sure how to go about it though.
09-21-2015 03:06 AM
Sorry for pushing, but could some help with this issue?
09-21-2015 09:44 AM
I found the missing functions when I rebuild the .NET wrapper around system.dll.
The problem is that this wrapper is huge and it takes too much time to recompile every time I load the project inside CVI. Moreover the size of my executable became large even if I don't use any additional function.
This is not acceptable, so I need to recreate a "reduced" wrapper as SystemWrapper.fp shipped together with CVI samples, but I don't know how to do it. Since I don't know which functions have been exported into SystemWrapper.fp and I can't manually check them one by one... this would take hours!!!
Is there a batch file (or something like that) that I can use to recreate a wrapper around system.dll which exports only the functions included in SystemWrapper.fp?
09-22-2015 03:37 AM
Sorry but I really don't know how you can do this, I'm not sure there is a way not to do this manually.