Register    Login    Forum    Search    FAQ

Board index » Software » Windows




Post new topic Reply to topic  [ 25 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
 Post Posted: Mon Apr 17, 2017 6:47 am 
Offline

Joined: Mon Mar 27, 2017 11:47 am
Posts: 15
Hin Yang,

Did you have any luck?

In the meantime, can you please try compiling the SDK with the following options:
/ZW /EHsc

This may resolve the issue or potentially give you some output that hints at why it doesn't work in a UWP context.

Best regards,

Evren


Top 
 Profile  
Reply with quote  
 Post Posted: Tue Apr 18, 2017 9:51 am 
Offline
Site Admin

Joined: Fri Jul 25, 2014 2:43 am
Posts: 175
Hi, I have built a new library as your requirement, please try it.
https://astronomy-imaging-camera.com/so ... P_test.zip

_________________
ZWO software engineer
Location:lon=120.6 lat=31.3
SuZhou China


Top 
 Profile  
Reply with quote  
 Post Posted: Fri Apr 21, 2017 11:31 am 
Offline

Joined: Mon Mar 27, 2017 11:47 am
Posts: 15
yang wrote:
Hi, I have built a new library as your requirement, please try it.
https://astronomy-imaging-camera.com/so ... P_test.zip


Hi Yang,

Many thanks for this. Unfortunately this has not resolved the matter and I'm still getting a count of zero.

It would be really good if you test this out on Windows 10 in a UWP project. So far I haven't been able to identify a solution that works within UWP.

Best regards,

Evren


Top 
 Profile  
Reply with quote  
 Post Posted: Tue Apr 25, 2017 7:09 am 
Offline
Site Admin

Joined: Fri Jul 25, 2014 2:43 am
Posts: 175
I find that the calling of "CreateFile (DevPath,...)" in our code is failed, which results in the fail of operation to USB device, currently I have no idea about this.

_________________
ZWO software engineer
Location:lon=120.6 lat=31.3
SuZhou China


Top 
 Profile  
Reply with quote  
 Post Posted: Wed Apr 26, 2017 7:32 am 
Offline
Site Admin

Joined: Fri Jul 25, 2014 2:43 am
Posts: 175
It seems that it's a permission problem, refer to this article:
https://developer.microsoft.com/en-us/w ... ceAccessor
I only tried the part "Granting Access to AppContainer Processes", then replug camera, result is the UWP project you sent to me works, camera is detacted and exposure successfully, I use the SDK compiled without /ZW option.

_________________
ZWO software engineer
Location:lon=120.6 lat=31.3
SuZhou China


Top 
 Profile  
Reply with quote  
 Post Posted: Wed Apr 26, 2017 2:19 pm 
Offline

Joined: Mon Mar 27, 2017 11:47 am
Posts: 15
Hi Yang,

Good find, thanks for all your effort. Works for me as well!

Best regards,

Evren


Top 
 Profile  
Reply with quote  
 Post Posted: Thu Apr 27, 2017 5:02 am 
Offline
Site Admin

Joined: Fri Jul 25, 2014 2:43 am
Posts: 175
Great! now I'm not sure if it can work on Arm platform's Wondows.

_________________
ZWO software engineer
Location:lon=120.6 lat=31.3
SuZhou China


Top 
 Profile  
Reply with quote  
 Post Posted: Mon May 08, 2017 9:18 am 
Offline

Joined: Mon Mar 27, 2017 11:47 am
Posts: 15
Hi Yang,

I've just hit another issue in UWP. I have been getting a live video feed and have been able to capture images just fine. So I thought I would now integrate my takephoto and videocapture logic and while doing so discovered that I can't stop the video or close the camera. I always get an unhandled exception coming back from the DLL, but as it is unhandled, I can't see what's going on.

Can you have a look? It should be easy to replicate, but let me know if you need anything else from me.

Best regards,

Evren


Top 
 Profile  
Reply with quote  
 Post Posted: Tue May 09, 2017 1:02 am 
Offline
Site Admin

Joined: Fri Jul 25, 2014 2:43 am
Posts: 175
ok, can you share your project, so I can reproduce the problem in the fastest way

_________________
ZWO software engineer
Location:lon=120.6 lat=31.3
SuZhou China


Top 
 Profile  
Reply with quote  
 Post Posted: Thu May 11, 2017 2:19 pm 
Offline

Joined: Mon Mar 27, 2017 11:47 am
Posts: 15
Hello Yang,

As you requested, here is an example project. I have a suspicion that the garbage collector is moving the camera object around in memory and then when you execute stopvideorecording or closecamera, some internal pointer in the SDK is referencing a no longer valid memory location. I might be completely wrong though!

Anyway, over to you. Launch the app, hit start to initiate the video, then hit stop... this is when it crashes on my system.

Best regards,

Evren


Attachments:
ASITestUWP.zip [372.35 KiB]
Downloaded 18 times
Top 
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
 
Post new topic Reply to topic  [ 25 posts ]  Go to page Previous  1, 2, 3  Next

Board index » Software » Windows


Who is online

Users browsing this forum: No registered users and 1 guest

 
 

 
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 post attachments in this forum

Search for:
Jump to: