Answer Questions
redneon SqlWorkflowPersistenceService - how does it work?
I'm going through one of the Hands-On Labs for Workflow Foundation, and am curious about the SqlWorkflowPersistenceService. The lab has me creating a workflow that outputs the time to the console, delays for 5 seconds, and outputs the time again. If I run this, the two times are 5 seconds apart, as expected. If I change the delay to one minute and 5 seconds, the two times are more than 1:05 apart (sometimes almost 30 seconds longer). Does the runtime periodically poll the database to see if there are any instances that need to be loaded from the database How often does this happen Thanks Well, first mystery solved ... the status of 3 means the workflow was terminated. I think I'm on the scent of the s ...Show All
gijshompes AVI LEFT RIGHT
I have a avi video file that got 2 audio language and play in directshow but can i make it just 1 audio language output on the speaker anyone can show me some function or code how to make it ...Show All
boulderbum Error loading workflow
hi all, when i loading the test.xoml which cantains a custom activity which have a property Conditions. the definition of property is : public static DependencyProperty OperationsProperty = DependencyProperty.Register("Operations", typeof(List<CustomCondition>), typeof(InfoActivity)); [Browsable(true)] [Category("Actions")] [DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)] public List<CustomCondition> Operations { get { return (List<CustomCondition>)base.GetValue(InfoActivity.OperationsProperty); } set { base.SetValue(InfoActivity.OperationsProperty, value); } } CustomCondition is custom class. there is a error when i loading i ...Show All
anilpatel32 batching : IPendingWork.Commit
MSDN Says : " The workflow runtime engine calls the Commit method when its semantics dictate that the pending work in the work batch should be committed . When it reaches a commit point, the workflow runtime engine calls the Commit method on each IPendingWork object in its work batch; the workflow runtime engine passes the Commit method the collection of items associated with that IPendingWork object. Either all of the work in a batch succeeds or none of it succeeds. You should throw an exception if any of the work items passed to the Commit method in your implementation cannot be committed. Depending on your implementation, you may want to perform some rollback in your Commit method if it cannot commit its work items. If th ...Show All
HuberSepp Store image object in a javascript object
I currently have an application that creates an image object in pure javascript using the following code: this._image = new Image(); $addHandler(this._image, 'load', Function.createDelegate(this, this._onLoad)); this._image.src = url; The neat thing about this is that I can wait with putting the image element into the HTML document until the browser actually has it loaded. So basically my onLoad function just add's it to the DOM and hides a progress indicator: $get('images').appendChild(this._image); this._image.style.height = "50px"; this._image.style.width = "50px"; $get('progressIndicator').style.display = "none"; Now, I want to do the exact same thing using XAML, but as far as I can see, you j ...Show All
Christopher M. Keslin using a series of bitmaps in memory as the source for a filter graph
Dear DirectShow forum, I would like to create a series of bitmap files in memory, then use them as the source of a directshow filter graph to create a video file (one bitmap per frame). I understand the video end (use AVI encoder and FileWriter filter or ASFWriter filter), but how can I use bitmap files in memory as the source for a directshow filter graph I can't find any appropriate filter. Thanks in advance for your time. Best regards, wtrn Well, I've written something that may be useful. It lets you specify the AM_MEDIA_TYPE, then calls your callback method to populate each sample. It's written in c++, but the samples showing how to use it are written in c#. Feel free to ...Show All
SachinSurana SampleGrabber can't work well with rmvb file
Dear all: I want to get Video, Audio sample data from various kinds of input file like avi, wmv, mpg, rmvb .... , So I use DirectShow and put two SampleGrabber filters in the filter graph. One for capture Audio, one for capture Video. The SampleGrabber for Audio is work well, also the SampleGrabber for video is work well but only for avi, mpg, wmv file. The Video SampleGrabber can't work with rmvb file. It happen connection error when I connect the graph. Is there any way to solve this problem I know the SampleGrabber don't support FORMAT_VideoInfo2 but how do I know this is the reason I can't connect it well if I can't use SampleGrabber to capture the video frame, what method should I use. Thanks! Jack ...Show All
dean gross EapHost Framework- Not calling EapPeerGetInfo
Hello- I'm attempting to implement my own EAP peer method. I've tried this for both my own method, and compiling the sample in the SDK. The configuration dialog works (from the network adapter properties). However, when I attempt to do an 802.1x authentication, my EAP method is never called (EapPeerGetInfo() is never invoked). EapHost is runing WLAN autoconfig is running Wired autocconfig is running. As I said, I get the same behavior with both the SDK sample and my own implementation. thanks Hi Derek, Were u successful in implemeting the EAP peer method. I am trying to implement an EAP extension module as per http://msdn2.microsoft.com/en-gb/library/aa363504.aspx But I have problems passing the MPPE ke ...Show All
Spider-link CreateFile Assistance
I have the following code taking out from windows system programming 3rd edition book. I'm having a hard time running this code, I know where the problem occurs, but don't know how to remedy the solution. I want to pass the command line arg(in this case argv[1]) for CreateFile, but I get an error. If I were to use TEXT("filename") everything will work fine. How can I get CreateFile to work with argv[1] Here is a snippet of my file. int main( int argc, LPTSTR argv[] ) { if ( argc != 3 ){ std::cerr << "Usage: cpW file1 file2" << std::endl; exit( 1 ); } HANDLE hIn, hOut; DWORD nIn, nOut; hIn = CreateFile( argv[1], // file to open GENERIC_READ, // open for reading FIL ...Show All
ImpureEvil Determine data Files Location in Vista?
Currently, my apps (and associated data files) may be installed in the Program Files folder - or any other folder that the user decides to use. If a user has installed the app in the Program Files folder on Vista, how does the installation program for my new Vista compatible apps know where to find the working data files - in the Program Files folder (if UAC has been turned off) or in the VirtualStore folder (if UAC is on) Is there a registry setting in Vista that can be read to determine this Also, does virtualisation work for the Program Files folders on all drives - or just the C:\Program Files folder Ideally, you're running with virtualization disabled for your program, since you've added a manife ...Show All
LSDev_KF SerializationException while Persisting inside UnloadInstance Method
Hi all, while persisting,Im getting a SerializationException of the SqlConnection !So my workflow is gettin terminated and hence the instanceid is not gettin saved in the instancestate table! Its happening inside the UnloadInstance method when i try this static void UnloadInstance( object workflowInstance) { try { //Here is where gettin exception. (( WorkflowInstance )workflowInstance).TryUnload(); } catch ( PersistenceException ex) { MessageBox .Show( "Exception in Unloadinstance " + ex.Message); } } I made the Class which declaring the SqlConnection(Inside my Data Access Layer) as Serializable and even made the field SqlConnection object as NonSerialzed.But still it ...Show All
daff2 Problem with IShellFolder::GetAttributesOf
Hi, In vista RC1 I'm seeing a really odd problem with IShellFolder I have some fairly simple code which does something like: sfg = SFGAO_FOLDER|SFGAO_FILESYSTEM|SFGAO_BROWSABLE; pShellFolder->GetAttributesOf(1,&idl,&sfg); if(!(sfg&SFGAO_FILESYSTEM)) { continue; } What I'm observing is that in RC1 SFGAO_FILESYSYSTEM is only ever set for shared folders! On all other OS's it works as expected (and documented). I'm guessing this is an RC1 bug - where can I report this to make sure it's fixed for the release Tony This appears to still be happening - just tested on the final production Vsita build. I don't have time to do any further debugging until ...Show All
Loki1982 SetupIterateCabinet failing from Custom Action .dll
I use Visual Studio 2005 to deploy my application. I have a Custom Action .dll that's called during the Install phase. (The entry point is the standard Install( MSIHANDLE ).) I'm installing a .CAB file and am calling SetupIterateCabinet() from this Custom Action .dll and it is returning ERROR_ACCESS_DENIED. Appears as though Custom Action .dll's are not run with the UAC elevated privileges of the .msi file. I tried adding a .manifest to give the .dll elevated privileges, but then Windows XP barks that there is an unrecognized token. I need this .msi file to run under both Windows XP, Windows 2000, and Windows Vista. Because this is a Custom Action .dll there is no way I can wrap the function in a COM object and call it with ...Show All
Brown_Jeff Writing only selected frames in AVI?
Greetings, I'm trying to pass to file writer filter only selected frames from a stream. I have written a transform-in-place filter that passes through only those frames that I need, but file writer writes the same frame several times (instead of writing it only once and waiting for the new frame to arrive). How can I invalidate frame once it has been written so that it won't be written again Thank you in advance, Murom http://avijoin.sourceforge.net/ AVI Mux uses the connection mdiatype frames per second information to fill the fps information of the avi file. This is obtained from upstream filters at connection time. No property page. Thank you - it works the way you said. I was wrong in the previous ...Show All
Angry Coder Task Scheduler
I have a problem using the task scheduler from an application in Vista(RC1). I'm able to get the task scheduler object but when I try to activate the specific task I get 0x80070005 (access violation) the code to where the application fails is included below. Does anyone have any idea why this doesn't work in Vista (Works just fine on 2000/XP) Also note! This application is complied ti a Control Panel applet (cpl-file) Code extract: HRESULT hr = ERROR_SUCCESS; bool bReturn = false ; HRESULT phrStatus; ITask *pITask; LPCWSTR lpcwszTaskName; // Initiali ...Show All
