Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
S

Serge Lobko Lobanovsky

@Serge Lobko Lobanovsky
About
Posts
114
Topics
21
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • OleDbException (exclusive access)
    S Serge Lobko Lobanovsky

    Thank you very much, Mike! I thought it was a sync problem :omg: Regards, Serge my blog on Easy Projects .NET and object-relational mapping

    C# csharp asp-net database com help

  • OleDbException (exclusive access)
    S Serge Lobko Lobanovsky

    I've got an ASP.NET application written in C# which uses an Access database. Sometimes, when several users try to access the application at the same time, a "file is opened exclusively by another user" exception is thrown. AFAIK, I need to synchronize access to the database. I've got a single place where all database access (like read a dataset, executenonquery) methods are. I tried using a ManualResetEvent to perform the task, but the problem is still there. Can anyone recommend an approach? Regards, Serge my blog on Easy Projects .NET and object-relational mapping

    C# csharp asp-net database com help

  • Code documenting
    S Serge Lobko Lobanovsky

    Hello friends, Perhaps somebody could give me an advice on the following problem. I was asked to prepare a document containing more-or-less detailed description on what was changed in the source code of one of our products for the last (sic) 5 months. As not all changes were documented and there was quite a lot of added/updated/removed I am now facing a nightmare - compare the file versions to find the changes. I was wondering if there could exist an automatic utility that can do this for me - it least list the methods/classes that were changed/added in 2 file versions. Does anyone know of such a tool? Thanks. Regards, Serge (Logic Software, Easy Projects .NET site)

    The Lounge csharp css tools help question

  • Move to Canada
    S Serge Lobko Lobanovsky

    Where did you move from? Regards, Serge (Logic Software, Easy Projects .NET site)

    The Lounge csharp question

  • Move to Canada
    S Serge Lobko Lobanovsky

    Where did you move from? I decided for an immigration company because 1) I don't want the mail between me and authorities to be read by 3d parties (KGB) as it happens here in Belarus 2) Actually, being really pressed for time at my job I would like somebody to handle all the stuff for myself Regards, Serge (Logic Software, Easy Projects .NET site)

    The Lounge csharp question

  • Bug Tracking Software
    S Serge Lobko Lobanovsky

    If you need time-tracking capabilities as well, take a look at our product - http://www.easyprojects.net[^] If only the defect tracking is needed, I would recommend TestTrackPro. Regards, Serge (Logic Software, Easy Projects .NET site)

    The Lounge help question discussion

  • Move to Canada
    S Serge Lobko Lobanovsky

    I live in Belarus (an ex-USSR republic). It's the red-tape that takes so long. Regards, Serge (Logic Software, Easy Projects .NET site)

    The Lounge csharp question

  • Move to Canada
    S Serge Lobko Lobanovsky

    I decided to move to Canada. I've recently signed a contract with an immigration company (Rosenblatt Associates). The process will take ~1.5 year to complete. Guys, who is out there in Canada, is it worth in your opinion? Regards, Serge (Logic Software, Easy Projects .NET site)

    The Lounge csharp question

  • Copy and Paste
    S Serge Lobko Lobanovsky

    I would hook the paste op in VS, and insert a Thread.Sleep(ONSECOND) after it :) Regards, Serge (Logic Software, Easy Projects .NET site)

    The Lounge csharp visual-studio collaboration question discussion

  • Copy and Paste
    S Serge Lobko Lobanovsky

    Well, we could add a kind of smart templates, which could sense whether the code block can be copy-pasted. *thinking*... Regular expressions? :laugh: Regards, Serge (Logic Software, Easy Projects .NET site)

    The Lounge csharp visual-studio collaboration question discussion

  • Copy and Paste
    S Serge Lobko Lobanovsky

    Actually, VB.NET. And will admit I've seen some C#, too ;-) Regards, Serge (Logic Software, Easy Projects .NET site)

    The Lounge csharp visual-studio collaboration question discussion

  • Copy and Paste
    S Serge Lobko Lobanovsky

    :-D Being tired to death of seeing the huge blocks of dumb copy-and-paste in fellow programmers' code, I suggest creating an addin for VS: 1) It allows only a single line to be copied to the clipboard and pastes at a time 2) When trying to copy 2-7 lines, it suggests to refactor the lines into a function 3) When trying to copy 8-15 lines, it prompts for a password. Password is randomly generated. 4) When copying more then 15 lines, it automatically sends an e-mail notification to the team leader What do you think? Regards, Serge (Logic Software, Easy Projects .NET site)

    The Lounge csharp visual-studio collaboration question discussion

  • Signed XML
    S Serge Lobko Lobanovsky

    Your smile shows you have no practical experience in this subject and do not understand that there are problems with both 1.0 and 1.1 crypto API implementation. So I am really sorry for the traffic you've wasted when posting your smiley. Novichek? :zzz: Regards, Serge (Logic Software, Easy Projects .NET site)

    C# question csharp xml help

  • Signed XML
    S Serge Lobko Lobanovsky

    Hi everyone, Could you please tell me what the best and error-prone way to sign and verify XML files exists? Which CSP provider exists on all 2K and XP machines? What is the optimal key-length so that it works with all localized Windows versions? The only constraint I provide is the ability to sign with the private key and to check with the public key. Thanks in advance. Regards, Serge (Logic Software, Easy Projects .NET site)

    C# question csharp xml help

  • System.OutOfMemory exception: error creating window handle
    S Serge Lobko Lobanovsky

    I did implement the scheme you suggested, however I'm still having the same problems. Could you suggest anything else? Should I call GC.Collect() manually? Or any other ideas? Also, I put [STAThread] attribute as suggested to me at MSDN managed newsgroups, which also didn't help. Regards, Serge (Logic Software, Easy Projects .NET site)

    C# csharp debugging help question sharepoint

  • System.OutOfMemory exception: error creating window handle
    S Serge Lobko Lobanovsky

    Thank you, Heath. I will implement this. Regards, Serge (Logic Software, Easy Projects .NET site)

    C# csharp debugging help question sharepoint

  • System.OutOfMemory exception: error creating window handle
    S Serge Lobko Lobanovsky

    Hi, Software: .NET 1.1 (both non-SP and SP1) Visual Studio .NET 2003 MS SQL Server 2000 SP3 Windows XP SP 2 Hardware: Intel Celeron 1700, Pentium 4 2.4GHz, AMD Athlon 1100 RAM 256-512 DDR I've run into a strange problem. There is an application which allows to: 1) connect to a certain device using a modem 2) manage different aspects (mostly, working with MS SQL Server) Serial communication is done on a separate thread, one per each connection. The maximum number of simultaneous connections is 20. Note: what is written below applies only when running the application not under the debugger. The app starts and works correctly: accepts incoming calls, performs different scenarios, dials out when necessary. When the comms thread needs to modify the UI, it is correctly done using Control.BeginInvoke. However, sometimes (on different computers) the following exception is thrown: System.OutOfMemory exception: error creating window handle ---> System.NullReferenceException: Object reference not set to an instance of object. at System.Windows.Forms.ThreadContext.OnThreadException at System.Windows.Forms.Control.WndProcException at System.Windows.Forms.ControlNativeWindow.OnThreadException at System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr) at System.Windows.Forms.UnsafeNativeMethods.IntCreateWindowEx(int32, string, string, int32, int32, int32, int32, int32, HandleRef, HandleRef, HandleRef, object) at System.Windows.Forms.UnsafeNativeMethods.CreateWindowEx(int32, string, string, int32, int32, int32, int32, int32, HandleRef, HandleRef, HandleRef, object) at System.Windows.Forms.NativeWindow.CreateHandle(CreateParams) -- End of inner exception stack trace -- at System.Windows.Forms.ThreadContext.OnThreadException at System.Windows.Forms.Control.WndProcException at System.Windows.Forms.ControlNativeWindow.OnThreadException at System.Windows.Forms.SafeNativeMethods.ShowWindow(HandleRef, int32) at System.Windows.Forms.Control.SetVisibleCore at System.Windows.Forms.Form.SetVisibleCore at System.Windows.Forms.Control.set_Visible at System.Windows.Forms.Form.ShowDialog(IWin32Window owner) at System.Windows.Forms.Form.ShowDialog at What could be the problem? Let me stress that this does not happen under debuggers. When debugging, the exception is not thrown. It was noted that this happens more often when having an active connection. Regards, Serge (Logic Sof

    C# csharp debugging help question sharepoint

  • Design Question - Business Object Layer and Data Access
    S Serge Lobko Lobanovsky

    Take a look at Martin Fowler's "Patterns of Enterprise Application Architecture" Regards, Serge (Logic Software, Easy Projects .NET site)

    C# database tutorial question css design

  • Delegates, asynchronous invocation
    S Serge Lobko Lobanovsky

    You're right. I am now simplifying the code. However, the proble is still there: I call Control.BeginInvoke(new MethodInvoker(myMethod)) and the debugger never stops in myMethod, and the code never executes. Regards, Serge (Logic Software, Easy Projects .NET site)

    C# help csharp design regex question

  • Delegates, asynchronous invocation
    S Serge Lobko Lobanovsky

    Hi everyone, I've been stuck with this problem for several days already. My code extensively uses asynchronous delegate invocation using the Delegate.BeginInvoke method. The general pattern is as follows: Scheduler or UI thread: 1) BeginInvoke function 1 First function: 1) prepare data 2) BeginInvoke data processing passing CurrentThread (see below) 3) CurrentThread.Suspend 4) (after resume) go to step 1 with new data processing command, if all commands are executed, exit Data processing: 0) get calling thread (passed in parameters) 1) process data 2) set result 3) resume calling thread Several data processing commands (Command pattern) require asynchronous calls, too. That is that BeginInvoke method is called from inside another method which was called using BeginInvoke, too. What I've noticed so far is that sometimes the delegate being BeginInvoke'd is NOT CALLED AT ALL! To give more evidence, I have a special Logger class which sends messages to a text box. Apparently, it uses Control.BeginInvoke to correctly dispatch Text property changes. Sometimes again the function specified in MethodInvoker delegate is also NOT CALLED AT ALL! What could be the problem? I honestly hope it is not a bug in the framework, as the project is (and has been for the last month) in the final stage. Regards, Serge (Logic Software, Easy Projects .NET site)

    C# help csharp design regex question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups