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
S

st14

@st14
About
Posts
5
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • DirectX, TIN surface models. Sample code for creating a mesh.
    S st14

    Hi, I was looking at Andrew Rissing's project AVID and was impressed. His code creates meshes from spheres and cylinders. (Ball and Stick class). I,ve done a small amount of 3d (under borland) but nothing under .net. Can anyone point me to an example of how to load a mesh from a TIN? I'm not using an *.x file. For example I would like to create a TinSurface class where I have a list of vectors (x,y,z) and a list of triangles (v1, v2, v3). Ideally I would like a drape a bitmap (green grass, brown dirt etc) but this can wait. ( I guess I could draw some funny looking trees with Andrew's classes while I'm at it !) I'm doing volume calcs between 2 surfaces and would like to graphically show how the surfaces intersect (for cut/fill etc). Thanks Stuart

    Graphics graphics tutorial csharp delphi game-dev

  • Printers and Vista, program hangs or chrashs.
    S st14

    From: Member 4312265 I'm am having the exact same problem with printing. Same two errors and everything. Did you find a solution? Christian Christian, I have not made any progress. I can't reproduce the problem here and so I'm relying on my users. PDFCREATOR gets them out of trouble. (use it as the default printer, it creates a pdf an then you can print the pdf fine.) Do you have the problem on a development PC ? If so I could send you a test program and we could work on this together. Things I have tried: Make sure .net and OS are fully patched. Remove all code optimisation from my release build. Place all print functions in TRY blocks to prevent the program from chrashing. regards Stuart PS You can download my application at http://www.mapsoft.com.au (miniCAD V5)

    Hardware & Devices help csharp com sysadmin performance

  • Printers and Vista, program hangs or chrashs.
    S st14

    Thanks John. Thats a good idea. One user has installed pdfcreator and now can print to pdf and then on to their printer but still can't print directly from my app. I have a smaller app that use an RTF control that supports printing so I'll send them a copy for testing. The error messages I get when my program crashes point to memory corruption by the driver. Here is one example: Exception details: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at System.Drawing.SafeNativeMethods.PrintDlg(PRINTDLGX86 lppd) at System.Drawing.Printing.PrinterSettings.GetOutputPort() at System.Drawing.Printing.PrinterSettings.FastDeviceCapabilities(Int16 capability, IntPtr pointerToBuffer, Int32 defaultValue, String printerName) at System.Drawing.Printing.PrinterSettings.Get_PaperSizes() at System.Drawing.Printing.PageSettings.PaperSizeFromMode(DEVMODE mode) at System.Drawing.Printing.PageSettings.GetPaperSize(IntPtr modeHandle) at System.Drawing.Printing.PageSettings.GetBounds(IntPtr modeHandle) at System.Drawing.Printing.PrintController.CreatePrintPageEvent(PageSettings pageSettings) at System.Drawing.Printing.PrintController.PrintLoop(PrintDocument document) at System.Drawing.Printing.PrintController.Print(PrintDocument document) at System.Drawing.Printing.PrintDocument.Print() at System.Windows.Forms.PrintPreviewControl.ComputePreview() Here is what happened when I tried to cath the error in a Try Catch block. In the Catch I am trying to display the exception contents in a MessageBox ) Exception details: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at System.RuntimeTypeHandle.ConstructName(Boolean nameSpace, Boolean fullInst, Boolean assembly) at System.RuntimeType.RuntimeTypeCache.ConstructName(String& name, Boolean nameSpace, Boolean fullinst, Boolean assembly) at System.RuntimeType.get_Name() at System.Diagnostics.StackTrace.ToString(TraceFormat traceFormat) at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo) at System.Exception.get_StackTrace() at System.Exception.ToString() at DrawTools.Startup.Main(String[] args) Thanks Stuart

    Hardware & Devices help csharp com sysadmin performance

  • Printers and Vista, program hangs or chrashs.
    S st14

    Yes the PC has3.5 gb of ram. The printer causing problems is an HP and the drivers are uptodate. OS Version: 6.0.6001.65536 Service Pack 1 Workstation x86 .NET Framework version: 2.0.50727.3074 x86 Processor: 2x "AMD Athlon(tm) 64 X2 Dual Core Processor 3800+" @ ~2004MHz (DEP, SSE, SSE2, SSE3) Physical memory: 3453 MB I've asked the user to try Paint.Net Stuart

    Hardware & Devices help csharp com sysadmin performance

  • Printers and Vista, program hangs or chrashs.
    S st14

    Is anyone else having problems with Vista printer drivers and there .Net application? My program hangs when the print preview control is initialised. If I try to catch the problem in a catch{} try block it often fails with a memory error at the next line of code. I am assuming the users buy a new PC, Vista installed, and then hook up to there trusty network or locally attached 5 year old printers. I can't reproduce these problems at home so I am a bit lost. I found this link which explains where some of the problems may start: [^] Thanks Stuart

    Hardware & Devices help csharp com sysadmin performance
  • Login

  • Don't have an account? Register

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