Jump to content
Xtreme .Net Talk

PlausiblyDamp

Administrators
  • Posts

    7016
  • Joined

  • Last visited

Everything posted by PlausiblyDamp

  1. What error are you getting?
  2. Are you just using the ThreadPool to start threads or are you actually using the PrintingThread thread anywhere? Also what happens in the myPrintRoutine.LoadPrintRoutine method? Does it do anything with threads / threading?
  3. What is the App.OrderEntry.printOrder method doing?
  4. What are you then doing with the string in question? Are you drawing the string onto an image or something else? If you are using an image then you can use the Graphics.FromImage method to return a valid graphics object and avoid using System.Windows.Forms.dll at all as there isn't any real need to use it within a web application.
  5. The command line tool caspol.exe might be of some help. Try caspol -rsp caspol -rsg
  6. Try searching the PC for mscorcfg.msc as this is the mmc settings file for the admin tool.
  7. What is the exception it is raising? If you simply do not have any matching rows you should get an array for 0 elements returned. Does this happen for all terms with no results or just for some?
  8. Never having used AutomatedQA I'm not sure what information it makes available to you - hopefully it should allow you to track the types / size of objects allocated, and more importantly where they where allocated. CLR Profiler is a free tool from MS that can provide an awful lot of information about the memory usage of your app and I would definitely recommend having a look at it. Does the number of threads allocated keep increasing or does it level out after a particular number is reached? What kind of objects are you instantiating (either using directly or using on a ThreadPool thread)?
  9. I'm not sure if FileSystemWatcher will work with Unix folders as it requires certain OS level functionality to be present. http://www.microsoft.com/technet/interopmigration/unix/sfu/default.mspx may be worth investigation though as it might provide the required functionality.
  10. If by VSS you mean Visual Source Safe then it should integrate with Visual Studio straight out of the box, for CVS you might want to look at http://www.jalindi.com/igloo/ - never tried it personally as I tend not to use CVS.
  11. If your class implements the System.Collections.IEnumerable interface then it should work as a valid datasource - this means you could simply do something like ListBox1.DataSource =
  12. If you put a breakpoint on the line where the crash occurs what are the values for tlbSearch and tlbSearch.Buttons(0)?
  13. The whole point of a TableAdapter seems to be creating a type safe DataAdapter based on the underlying DB structure / procedures, exposing the DataAdapter as a public property would allow external code to alter things in such a way as to break the TableAdapter (changing the command string, shoving invalid parameters into the commands.parameters collection etc.) and would generally defaeat the point of using a TableAdapter. If you already have your own data access layer why would you use wizards to generate another one, especially one that doesn't fit with your way of working? If you need to use DataAdapters directly why not create your own class that exposes them centrally, that would prevent you from needing to use the designers in a 2003 style (they were never that good an idea as they resulted in massive code duplication anyway).
  14. Just a quick example of how it is possible to create a custom textbox control in VB.Net. It exposes a property to define allowed content via an enumeration, raises an event on invalid entry and also handles programatic assigment and attempts to paste invalid data also. Zip also includes a sample form showing the control in action (or lack of action) CustomControl.zip
  15. If you are converting a VB6 declare statement remember that under .Net all Longs are now Integer and all Integers are now Short. Also As Any is no longer supported and needs to be declared as the correct parameter types.
  16. If you can load the XML into a DataSet / DataTable then you could always take advantage of the System.Data.SqlClient.SqlBulkCopy class to make the actual inserting easier. If the documents get too large (really depends on available RAM) then an alternate solution may be required. Also if the existing XML already has a defined schema you can use that within VS - otherwise you will benefit from creating a schema / strongly typed DataSet within VS.
  17. Do you have a particular problem you would like help with: explanation of a linked list, implementation ideas, testing methodologies or tips etc? If so feel free to ask, you are unlikely to get many responses to a cut and paste of a school / college / whatever assignment though.
  18. The section of code If DeliveryNotificationOptions.OnSuccess = DeliveryNotificationOptions.OnSuccess Then MessageBox.Show("Information Was Successfully Submitted") ElseIf DeliveryNotificationOptions.OnFailure = DeliveryNotificationOptions.OnFailure Then MessageBox.Show("Information Was Not Submitted") will always return true as you are simply comparing DeliveryNotificationOptions.OnSuccess to itself - in fact this enumeration is not intended to be a way of checking but of specifying what notifications you would like, you need to set the DeliveryNotificationOptions property of the message itself before sending. Does the local PC have IIS / SMTP installed and configured to allow sending of e-mails? Also when you tried sending via a smtp server did it return any errors? If not did the account you were using have permissions to send / relay through that server?
  19. Just out of interest is there areason why you need to be able to add / remove columns dynamically? Although technically possible (as Puiu explained above) it is most definately not a normal way for a database to be maintained. If you gave a bit more detail about what you are trying to achieve then there may be a better alternative.
  20. Looks like a problem at their end as it is failing withing the generated wrapper class. If it isn't returning valid XML then you will just need to handle the exception. Out of interest does it do this randomly or is it dependant on the parameters you provide?
  21. System.Diagnostics.PerformanceCounter can be used to access the standard Performance Monitor stats - that may be suitable for you.
  22. http://www.xtremedotnettalk.com/showthread.php?t=81155 might be what you want.
  23. As far as I can tell VB doesn't get them. I only stumbled across this fact myself the other day, I'd always just assumed they existed as I can't see a single reason why they wouldn't be implemented...
  24. You will only get the warning with reference types as there is no way for a value type to ever be Nothing. Now if you want a stranger idea try the following code Sub MySub() Dim c As Class1 = Nothing ReturnClass1(c) MessageBox.Show(c.Name) End Sub this will suppress the warning about a null reference despite the fact it is still a possibility!
  25. Is the project called RangeValidator? If so it looks like it is getting confused between the default namespace and the RangeValidator control. Try renaming the project / changing the default namespace and see if that fixes it.
×
×
  • Create New...