The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
I have access control application called db digitus which is used SQL server to storing data and retrieving. once i search for access control even report , i am getting this error "Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding". Can anybody help me to fix this issue please?
This might not be a programming question, so I'll try to help a little. However, it would be better if it were in the database forum.
The message you have got is fairly generic for a million and one database issues and does not necessary mean that you have a timeout despite the words in the message. I get the message a lot. Often it is intermittent and can be got around by re-requesting the transaction? If that is the case in your situation, I'm afraid it is one of the "tough - that's life, live with it" problems. If the same transaction always gives the problem then it might be your SQL that is at fault - too complex query, bad indexing (i.e. wrong items being indexed), trying to return too many rows / columns, no caching etc etc - in which case it should be posted on the database forum.
The message you have got is fairly generic for a million and one database issues and does not necessary mean that you have a timeout despite the words in the message.
Doesn't necessary mean that, but often does.
Often it is intermittent and can be got around by re-requesting the transaction?
So why the question mark? You unsure?
If that is the case in your situation, I'm afraid it is one of the "tough - that's life, live with it" problems.
No, it ain't; and if you encounter it, you pay me for the solution. I've seen and solved it; sometimes it is the query, sometimes it is the processing of the results; and before you even dare to make an offer, make it a fakkin' sweet one, since I aint tempted easily, especially not after a lecture of someone who is swimming in sand.
Get back to your basket, I'm in a foul mood.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
Yesterday I asked "Why learn Rust", mostly because I was curious but seeking encouragement while facing the overwhelming existential dread of having to configure my system...
Then I distractedly did it while youtubing and.. well, that was easy!
So... why not do it hey?!
Here is how:
Step 1. Install VS Code (there is a one click installer ask google)
Step 2. Install Rust (rls) extension (click on the 4 cubes icon the left, type rust, click install)
Step 3. As per RustRls extension description, install Rust tool (google it, there is a one click windows installer for it)
=> You now have intellisense and mouse hover tips / documentation!
You are now ready to go, err.. I mean rust!
I had 0 configuration, just run 3 installers!
(might have to restart, I did restart since I was also checking windows update)
Additional optional step, I want to press F5 and debug!
I had to google 2 minute to find out how! (phew)
Step 4. Install the VS Code extensions "C/C++" (by microsoft)
Step 4a. (tricky) I had to find a mysterious hidden setting I can't find again which enable breakpoints everywhere
Step 5 create a debug config in your system, Run > Add Configuration, choose "C++ Windows Launch", then edit the .vscode\launch.json file "program" variable to point to your program
"why not xxx?" is not really a question, at best a rhetorical question, but really a suggestion to do xxx.
Other than that I suppose you mean to ask if I had any ulterior (or posterior ) motive to learn rust?
To that I will say yes. Yes I do.
Based on assumptions yet to be proven though, so time will tell...
If you really want to know, just like Microsoft using the ultimate C++ power to write desktop app, instead of C#, I am trying to see if I could comfortably write ultimate desktop app in Rust.
Tried C++ but that was painful. And I don't just mean the duplication of info (.h, .cpp), but the super slow recompile, some interop issue with arrays (I think it was not easy to pas array into C# and then into DirectX, had to make copies...), trouble working with generic, if I remember right, and I forgot what else...
I hope it might be painfree with Rust!
And also DirectX friendly.. (which C# is not)
And also.. reflection friendly (or a working alternative, such as the new .NET 5 code generator)
In other news I can already see that startup times are faster. While a C# / .NET Core start in a barely perceptible amount of time, a rust console app is already finished before my finger even rise up from enter!
For the time being it will be for fun for my home project..
We shall see... My home projects are more often than not desktop app... so I hope that the WinRT binding is working well enough! Yet?
I never found C++ to be particularly painful. The thing about C# is it stores arrays in different memory order than C++ for multidimensional arrays, IIRC so yes, making them work together would require a copy.
A better way to do it (and I'd probably have to see how feasible this is as I haven't tried DirectX coding in years) though would be to let the unmanaged code pass you arrays in different memory order, and in the C# code just account for it. Your indices would need to be translated. Easiest thing i can think of is to just map everything as a 1d "flat" array using interop, and then do the math of of y*totalX+x or vice versa to translate.
compilation is superslow, intellisense doesn't work very well...
when I do C++ these days, I mostly C++/CX or C++/WinRT with a dash of either DirectX or, obviously, WinAPI.
I cant remember very well, it has been a while. But many time I keenly thought to myself, now I am switching to C++. And I always give up. Not because of the syntax, but because the development environment in C++ seems less comfortable than in C#.
Bear in mind that most my toy app at home are GUI app...
Maybe simple console app or service app are fin in C++, but I always found GUI app development in C++ much more tedious than it should...
And also, since I want perfect C# interop, that adds extra tediousness...
Ha well yes, it doesn't just work...
But it doesn't take too much work to make a surprising amount of dev tools (unsupported by VS) to work as well!
But yeah, every now and then when I start to use VSCode for a few weeks I start with a how is this thing even working?!
Epic Games is giving "Amnesia: The dark descent" and "Crashlands" for free through May 7th
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
Last Visit: 31-Dec-99 19:00 Last Update: 26-Feb-21 0:47