Software Development Network Logo
  • Windows Forms
  • VS Team System
  • SQL Server
  • Visual C++
  • Visual Studio
  • Architecture
  • Visual FoxPro
  • Visual Basic
  • Visual C#
  • Windows Live
  • Game Technologies
  • Smart Device
  • Microsoft ISV
  • Windows Vista
  • VS Express Editions

Software Development Network >> abrang's Q&A profile

abrang

Member List

Louis Lafreniere
energium
Ahmed_khemiri
Weidong Ding
hdp203
Ralf Kornmann
TPR
RobertV
DataBound
Jus55
S Collins
AratiR
pine_ant
coh
Anton Lapounov
renju_dom
mausau
Mark Daly
poriali
zmax1234
Only Title

abrang's Q&A profile

  • .NET Development Event And Threading.

    I was just doing some code, when i noticed 1 thing. Lets take this example. We have 2 objects. object1 have a worker thread, and an event. object2 subscribes to the event, that object 1 exposes. object1's worker thread calculates some stuff, and when its done, it raises event, and object2 catches it. Heres the problem. The method thata object2 got, to handle this event, runs in the SAME thread, as the thread that it was raised from(This is an issue when it comes to win forms). When i find this thing that i wonder about in OO things, i try and take the context, into some IRL example. I have tried over and over again, but this makes no sense t ...Show All

  • Visual Studio Reportviewer doesn't print first time I click print button

    I use a WindowsForm Reportviewer. C# 2.0 I generate the report and all is OK but when the user try to print (print button in toolbar), the application open the printdialog, I select the printer and press Ok. But the application doesn't generate a document. When I try again, all work fine. If I close the application and restart, occurs the same (first doesn't works, second works, all time works). somebody have any idea Thanks form Spain.               Are you using the RTM version of the controls and of the 2.0 framework   We saw iss ...Show All

  • Windows Forms Problems with MIME settings at the hosting provider

    Hi, My web hosting company is www.brinkster.com and I have asked them to enable MIME type for ".application". After a short period of time, the extension was not recognized anymore (404 Page not found) so I have asked them to reenable the settings. This is what I have received from their suport: ------------------------------- Hello, I am not sure what has happened now but I have just reset the MIME settings for the ".application" extension.  It is possible that this extension name is too long for our server to recognize it.  If problems occur in the future, would it be possible to shorten the extension name (for example to ".app ...Show All

  • .NET Development filling of dataset takes incredibly long time in Visual Studio 2005 RC

    I am working in Visual Studio RC 2005. I am filling a dataset by calling a stored procedure. As long as the amount of data that the stored procedure returns is small, everything works fine. However, for larger, but still rather small amounts of data (getXml() on the dataset returns less than 25kB), the filling takes very long time, sometimes even timing out. Even worse, the sql server is brought to a complete standstill working at almost 100%!! It doesn't really seem to be connected to the filling of the dataset either. I first observed the problem when I tried to call ExportToDisk on a ReportDocument (crystal reports) which t ...Show All

  • SQL Server GetValue on a DTSProperty Object

    In an Integration Services scrip ttask, I am trying to get the value from a DTSProperty of a Connection Manager object. The code seems like it would be very straight-forward. Here is what I have... Dim oCM As ConnectionManager Dim oProp As DtsProperty Dim sValue As String oCM = Dts.Connections( "SomeConnectionManager" ) oProp = oCM.Properties( "ServerName" ) If oProp.Get Then sValue = oProp.GetValue() End If The line inside the If block is the problem. Once you have a DTSProperty object, you should be able to get to the value of that property. GetValue is a method that either I can't ...Show All

  • SQL Server SQL SERVER 2005 REPLICATION (SNAPSHOT GENERATION FAILING)

    I'm getting this error when I try to generate a snapshot for "merge" replication. I have added the articles one-by-one to try and narrow the problem down. I get this error on specific articles. Any help is appreciated. 2006-03-23 18:23:14.35 Server: MYSERVER 2006-03-23 18:23:14.35 Database: MYDB 2006-03-23 18:23:14.35 Command Text: sys.sp_releaseapplock 2006-03-23 18:23:14.35 Parameters: 2006-03-23 18:23:14.35 @Resource = MYSERVER-DBMERGE 2006-03-23 18:23:14.35 @LockOwner = Session 2006-03-23 18:23:14.35 @DbPrincipal = db_owner 2006-03-23 18:23:14.35 [99%] The replication agent had encountered an exception. 2006-03-23 18: ...Show All

  • Visual C++ Low-level Threading

    My most basic threading implementations don't seem to update nearly as quickly as they should. The program below seems to get stuck on the Sleep() call for a fifth of a second every time, even though I'm requesting a Sleep of a fiftieth of that. If I remove that call, the thread takes over the CPU, as expected. I understand that Sleeps are inaccurate but my previous experience has shown it to be off by a few milliseconds, not a few tenths. long t = 0; DWORD WINAPI run(LPVOID param) { while(true) { printf("%f\n", ((float) clock() - t) / (float) CLK_TCK); t = clock(); Sleep((DWORD) 1); } ...Show All

  • Windows Forms Webbrowser Control Memory Management Question

    I have a C# application that uses the webbrowser control. I've noticed that as I load more web pages through the webbrowser control my program continues to consume more and more memory. (It starts at 9MB and quickly climbs to 40MB by simply loading web pages.) My question is really two part: Q1: What is the reason for this compounding memory comsumption Web cache, memory leak, ... Q2: Is there some sort of garbage collection I should be manually performing such as routinely clearing some sort of web cache in RAM   JBrown9264 wrote: But I am still left with the problem of memory consumption. Note: I am not usin ...Show All

  • Visual Studio Team System Getting app.config from a .exe being tested

    In tests I can access the web.config of a web application with: [ TestMethod , HostType ( "ASP.NET" ) , WebServerType ( WebServerType .WebDev ) , UrlToTest ( "http://localhost/Web/Default.aspx" ) , PathToWeb ( @"c:\Source\Web" ) , WebApplicationRoot ( "/Web" ) , Description ( "Descriptive text for the method" )] ..but I don't know how to access these for a destop application being tested. What documentation I can find on it is very sparse:     http://msdn2.microsoft.com/library/ms182796(en-us,vs.80).aspx Any ideas   Ideally I need to be able to change values in the app.config too. ...Show All

  • Visual C# SQL Server 2005 and Threads - Licensing

    I am working on a project that will require the use of SQL Server 2005 Workgroup Edition. We were planning to use the version that comes with 5 CALs instead of the version licensed based on processors due to the enormous cost difference. Our customer who will be using this is a goverment agency and MS charges them ~$800 for the 5 user version, but the version licensed by processor is ~$20000. This software will be potentially installed in lots of locations so cost is a big factor. The application I am working on is using c#. I am being told that if I use threads, each t ...Show All

  • Visual Studio Install Crystall Report 2002 on 2005

    Hello I just installed Visual Studio 2005 Standard Edition. I also own (but have not installed on my computer) the Visual Studio 2002 Professional Edition. Is it possible to install the Crystal Report from the 2002 Edition separately onto the VS 2005 Standard Edition If yes, how do I do this Thanks for your help. Not possible. There are only two versions of Crystal Reports that work with Visual Studio 2005. The one that comes bundled with VS 2005 professional and higher and Crystal Reports XI release 2. ...Show All

  • Windows Forms Set DB Connection object global for all forms

    Hello, I'm making a winform application who work with Oracle. I need to be always connected to oracle, since the application start to the application stop. The main form of this application is an MDI Form, on most of the other form are MDI Child. I would like to create a  Database object connection only one time, then i will be able to use th ...Show All

  • Visual Studio Tools for Office Accessing a Pre-existing Shape on a Worksheet

    I am attempting to access a Shape or Drawing Object on a worksheet to change its Onaction, ListFillRange and LinkedCell. In VBA, you did this: sheet.DrawingObjects("name").OnAction= "action" sheet.DrawingObjects("name").ListFillRange= "ListFillRange" In C#: I can get access to a Shape object: sheet.Shapes.Item("name"), -- gives me access to OnAction, but not ListFillRange or LinkedCell. I have tried this: //gets all Drawing Objects on a sheet Excel.DrawingObjects d = (Excel.DrawingObjects)sheet.DrawingObjects(missing) ; return (Excel.DrawingObjects)d.Item(name); //crashes here The problem is ...Show All

  • Smart Device Development is there a cell phone keypad library for PC App?

    Hi Can some one guide me to find in the Smart Device library a dll that simulates Cell Phone Key for Short Messaging System, the only problem it will be used for a Windows XP Application -S I'm not sure I understand your question. This forum is for device development questions - so you're probably better off asking on one of the desktop development forums/newsgroups ...Show All

  • Smart Device Development Debugging and deployment problems on WM5.0

    Hello I have a couple of questions I can't figure out on my own. I've written a program that runs fine when I use the PocketPc 2003 emulator. It also builds for smartphone 2003 and both smartphone/pocketpc WM5.0. The problem is that it doesn't run on other emulators than the pocketpc2003. When trying to run any of the other versions I get: Data Abort: Thread=9798b6a0 Proc=80fc7010 'PhotoEditor.exe' AKY=00008001 PC=000988cc(PhotoEditor.exe+0x000888cc) RA=00098a1c(PhotoEditor.exe+0x00088a1c) BVA=10c110a5 FSR=00000405 RaiseException: Thread=9798b6a0 Proc=80fc7010 'PhotoEditor.exe' My second issue is this. I have a qtek 8310 as my target device ...Show All

©2008 Software Development Network