In some cases, such as when you create a Flash application or when an entire site is built in Flash or Flex, then memory leaks could build up to very high levels. ![]() if they are only part of an html page, such as a banner). ![]() In many cases, memory leaks are no problems in AS3, since most Flash content is not very complex and swf files are often reloaded (e.g. MySqlCommand cmd = new MySqlCommand(sql, created.ToString("yyyy-MM-dd hh:mm:ss")) Ī short comment on memory leaks in AS3. String sql = "INSERT INTO mytable (text, created) " + Care should be taken if the MySQL date value is 00:00:00 since this is outside the range of a DateTime objectĪnother solution is to format the DateTime into a string that MySQL recognizes. Using the mysql connector, we can save our DateTime value into a MySqlDateTime datatype and the database will accept this value. ![]() One solution to this problem is to use the mysql connector library for. When trying to save a DateTime value in a MySQL database, or loading MySQL date values into a DateTime object, you normally get an exception saying "Unable to convert MySQL date/time to System.DateTime".
0 Comments
Leave a Reply. |