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
  1. Home
  2. General Programming
  3. Visual Basic
  4. Data Binding Problem.

Data Binding Problem.

Scheduled Pinned Locked Moved Visual Basic
helpdatabasesql-serverwpfwcf
2 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Martin Cross
    wrote on last edited by
    #1

    Right, I have a set of Data Access Layer classes that represent their respective SQL Server tables. I have a set of forms where I use the .DataBinding() for each control to bind to properties in my Data Access Layer classes. This was all working great, until I moved the forms into an external .DLL. Now when I call the forms .Show() from the external .DLL I get the message: "An unhandled exception of type 'System.OutOfMemoryException' occurred in system.windows.forms.dll" - Additional information: Error creating window handle. I've traced through the code, and the externals forms will fire up perfectly fine into my apps MDI form, as long as no calls to the data binding take place. Is there any reason why Data Binding won't work across .DLLs????

    M 1 Reply Last reply
    0
    • M Martin Cross

      Right, I have a set of Data Access Layer classes that represent their respective SQL Server tables. I have a set of forms where I use the .DataBinding() for each control to bind to properties in my Data Access Layer classes. This was all working great, until I moved the forms into an external .DLL. Now when I call the forms .Show() from the external .DLL I get the message: "An unhandled exception of type 'System.OutOfMemoryException' occurred in system.windows.forms.dll" - Additional information: Error creating window handle. I've traced through the code, and the externals forms will fire up perfectly fine into my apps MDI form, as long as no calls to the data binding take place. Is there any reason why Data Binding won't work across .DLLs????

      M Offline
      M Offline
      Martin Cross
      wrote on last edited by
      #2

      ........and the solution is.....................pass your controls around by reference and not by value....ta da!!

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

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