|
you're welcome.
BTW: void is not a value, it is a type (or absence thereof, some would say).
Luc Pattyn [Forum Guidelines] [My Articles]
DISCLAIMER: this message may have been modified by others; it may no longer reflect what I intended, and may contain bad advice; use at your own risk and with extreme care.
|
|
|
|
|
Oh...yepp...I know...sorry for my unclear expression...I´m no native English speaker...
|
|
|
|
|
Please help.
I have Page.SmartNavigation = true; in my page load but it does not work' My browser does not maintain its last position after the page refreshes.
|
|
|
|
|
|
Good day
I want to save a video stream to file from my webcam. I looked at Andrew Kirillov's example on "motion detection algorithms" and used the exact same code to test the saving of a video file, but it seams that the writer.Open() method is unable to execute properly.
In my own code (using the "saving video" snippet) I'm given an exception, and when running Andrew's complete source code on the motion detector the program freezes as soon as I start recording.
I am running Vista, so I don't know whether that might be the cause?
This is my code I'm currently using:
SaveFileDialog sfd = new SaveFileDialog( );
if ( sfd.ShowDialog( ) == DialogResult.OK )
{
AVIWriter writer = new AVIWriter( "wmv3" );
try
{
writer.Open( sfd.FileName, 320, 240 );
Bitmap bmp = new Bitmap( 320, 240, PixelFormat.Format24bppRgb );
for ( int i = 0; i < 100; i++ )
{
bmp.SetPixel( i, i, Color.FromArgb( i, 0, 255 - i ) );
writer.AddFrame( bmp );
}
bmp.Dispose( );
}
catch ( ApplicationException ex )
{
lblFps.Text = "Exception thrown";
}
writer.Dispose( );
}
|
|
|
|
|
What kind of exception / what text is in the error?
I are troll
|
|
|
|
|
Dear friends,
please tell me how to change the File summary information ??
My Problem is i have
"own file type"
and i want to change the file summary through c# can u please tell me how to do that?
i mean the file->properties-summary tab information.
please give me any idea? link? or source.
Thank you.
Joe.I
|
|
|
|
|
|
Dear friend
thanks for your replay.
i have asked the question already ??
With Love
joe.I
|
|
|
|
|
hello
I ran into this error message while before/while/after insert into ShopMessage...
<br />
Message "Cannot access a disposed object.\r\nObject name: 'Transaction'." string<br />
I'm using TransactionScope with timeout set to zero (i.e. infinite). Googled a bit still quite clueless.
This is how I wrap Database calls in TransactionScope
<br />
<br />
using (oScope = new TransactionScope(TransactionScopeOption.Required, TimeSpan.FromMilliseconds(0)))<br />
{<br />
nGeneratedId = SaveCoreOperations(ref oShop);<br />
oScope.Complete();<br />
}<br />
Here's the stack trace
<br />
at System.Transactions.Transaction.get_IsolationLevel()<br />
at System.Data.SqlClient.SqlDelegatedTransaction..ctor(SqlInternalConnection connection, Transaction tx)<br />
at System.Data.SqlClient.SqlInternalConnection.EnlistNonNull(Transaction tx)<br />
at System.Data.SqlClient.SqlInternalConnection.Enlist(Transaction tx)<br />
at System.Data.SqlClient.SqlInternalConnectionTds.Activate(Transaction transaction)<br />
at System.Data.ProviderBase.DbConnectionInternal.ActivateConnection(Transaction transaction)<br />
at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)<br />
at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)<br />
at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)<br />
at System.Data.SqlClient.SqlConnection.Open()<br />
at NHibernate.Connection.DriverConnectionProvider.GetConnection()<br />
at NHibernate.Impl.SessionFactoryImpl.OpenConnection()<br />
Any idea?
dev
|
|
|
|
|
devvvy wrote: SaveCoreOperations(ref oShop);
I don't think you need a ref here.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
yes you're right about not needing the ref, but that's not what i am asking either.
I am suspecting TransactionScope called Transaction.Dispose somehow.
dev
|
|
|
|
|
devvvy wrote: using (oScope = new TransactionScope(TransactionScopeOption.Required, TimeSpan.FromMilliseconds(0)))
{
// Here we have some ADO.NET calls + some NHibernate calls.
nGeneratedId = SaveCoreOperations(ref oShop);
oScope.Complete();
}
Where is oScope used?
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
some inside SaveCoreOperation and hint, death came after many iterations
dev
|
|
|
|
|
But you never passed oScope to this method. It takes the only parameter which is oShop
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
why'd you need to, scope wraps code whether inline or not between "using" open and close bracket.
using (oScope = new TransactionScope(TransactionScopeOption.Required, TimeSpan.FromMilliseconds(0)))<br />
{<br />
nGeneratedId = SaveCoreOperations(oShop);
oScope.Complete();<br />
}
I am suspecting perhaps from within "SaveCoreOperations" oConn used was opened/closed then "Re-opened"... not sure
dev
|
|
|
|
|
You can get this error message if your Distributed Transaction Coordinator service is not running. Use Administrative Tools to check the Status of the service has Started and that the Startup Type is Automatic.
Also, the default timeout/timespan is 1 minute and the default machine config caps it to 10 minutes.
modified on Wednesday, August 26, 2009 11:14 PM
|
|
|
|
|
Hi
Im placing some controls dynamically on tool strip control and i'm handling that controls click event as well tool strips click event. But when ever i click the control it triggers both the event.
I want to cancel tool strips event when i click the control.. how can i do this?
|
|
|
|
|
Do you need the toolstrip's Click event to be handled at all (I've never found a need for it personally as all I'm ever interested in is the items, not the strip)?
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
Well, I'm handling tool strip click event also with different context.
|
|
|
|
|
|
What is it that you are using the ToolStrip's click event for?
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
Hi,
Do you have any idea on how to attache image/docs/pdf saved from SQL DB then send it to email?
All the attachements of diff. docs are all saved in our SQL DB, they want me to send the attched files as per record at attachment to email.
PLSzzz.
Dabsukol
|
|
|
|
|
Have a look at this[^]
The example is in VB.Net but I hope you can easily convert it to C#.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
form name is "Test".
i want to close this form using short cut Alt+F4
cany anyone help me
|
|
|
|