Questions tagged [resource-management]

142 questions
0
votes
1 answer

Android splashscreen without creating a new activity

Edit After moving my loading / creation code to an Async Task (see below) - I still have the initial problems that I had with my original splashscreen. Those being that: 1) On starting the Async task in onCreate, everything is loaded but my Dialog…
Zippy
  • 3,826
  • 5
  • 43
  • 96
0
votes
1 answer

What is the better/memory-efficient way to implement this

Suppose I have a Font class that looks like this: const unsigned int MAX_CHAR = 256; //better than dynamic I think? struct BMchar { int x_ofs, y_ofs; _uint32 x, y; _uint32 width, height; _uint32 x_advance; }; struct BMkerninfo { …
mr5
  • 3,438
  • 3
  • 40
  • 57
0
votes
4 answers

Close a thread against a mysql database in c#

What is the proper way of closing a tread after running a query against a MySql database from a windows form in C#? Is a simple open close enough like this? conn.Open(); //querycode conn.Close():
Darkmage
  • 1,583
  • 9
  • 24
  • 42
0
votes
1 answer

How to limit the effect of client modifications to production systems

Our shop has developed a few WEB/SMS/DB solution for a dozen client installations. The applications have some real-time performance requirements, and are just good enough to function properly. The problem is that the clients (owners of the…
0
votes
2 answers

Release IO resources in scala without maintaining mutable state

I need to use some Java library, which might throw some exceptions in one method and return error codes in another set of methods. So far it leads to the ugly code like val txn = mgr.prepareTransaction() val accessRecord = txn.readByQuery(...) var…
jdevelop
  • 12,176
  • 10
  • 56
  • 112
0
votes
1 answer

Does it make no sense to have a external resource dll in ASP MVC?

I have been trying to find recommended practices for resource management in the ASP.NET MVC app.. (target .NET 4.0 ) so far I have not been able to figure out whether should I add a separate satellite assembly to my MVC app or add the resources in…
PRE
  • 79
  • 1
  • 9
0
votes
1 answer

Retreving images through a .resx vs static images in asp.net web app

Our current scenario seems to be tailor made for .resx files, but my understanding is a bit murky, and I am looking for some calcification. Our webApp is skinned differently for our different clients, but the difference is not the same for all…
Siegeon
  • 610
  • 3
  • 15
  • 33
1 2 3
9
10