-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The code sample does not works with compress option QUESTION and help #52
Comments
It looks like if there's a warning, you just aborting, perhaps there's a warning coming through? Is there any info in your logfile? |
No, the log file result is empty, let me check if removing the line "_WimMessageResult = WimMessageResult.Abort" in warning works |
I'm not quite sure what's going on. We have this unit test that does a capture: I updated the test to capture all messages and write them to the console and this is what I get:
Maybe you're getting another message type that is telling you what's going wrong? I'm really surprised the log file doesn't contain anything. |
this is the information that show the log file [5016] [0x80070006] AddFileNodeToImage:(895): The handle is invalid. |
jeffkl another interesting thing is when i capture the image without the call back message method working fine capture the image with xpres. What could be the issue ... |
The QueryAbort is sent to the callback method every 10MB to allow for cancellation. It would only happen endlessly if the image capture was huge. That's definitely strange that it completes fine with no callback, it must be something simple that's happening. |
Jeffkl, i write a new console app and in this case the code its working fine, i don't know why not works from an windows forms applications This is the code the i'am using in console application
Do you tried it to capture an image from a windows form application? Perhaps i have a threads conflict into the windows form application |
Yeah that would make sense, I bet there's a deadlock in there somewhere. I have not personally written a windows form application in a long time. Try playing around with threading and see if you can get it working. |
When i try to capture image with compres.Xpress or compres.lzx the code not working, look like a the script
stops working and does nothing
this is mi code
#region WIMGAPI
WimMessageCallback wimMessageCallback;
CopyFileProgressCallback copyFileProgressCallback;
CopyFileProgress _copyFiles;
WimMessageResult _WimMessageResult;
WimHandle _handleByCapturingImg;
The text was updated successfully, but these errors were encountered: