15,902,275 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Sameer Alomari (Top 16 by date)
Sameer Alomari
21-Oct-13 21:26pm
View
Thanks! I will look at it :-)
Sameer Alomari
21-Oct-13 21:07pm
View
I don't have a problem with coding, if it is a regular ASP.NET website I won't need help. I just want to know how to implement my layers using CSLA. How to write business objects and Data Access classes according to CSLA guidance? I am not looking for a specific code sample. Any sample that shows all layers and how they interact will be a good start to learn the concept
Sameer Alomari
21-Oct-13 20:33pm
View
Thanks for the eBook, I already have a copy but I was trying to avoid reading 750 pages to do an assignement!
Sameer Alomari
27-Mar-13 16:17pm
View
This code is called by a timer every second to pull data.js file from the server, So I get a leak because the application calls this code constantly
Sameer Alomari
26-Mar-13 17:52pm
View
if I comment xmlHTTP.send(null); then the memory is stable! any clue?
Sameer Alomari
21-Feb-13 10:01am
View
My C++ code is callable from FORTRAN, my problem is passing the parameters from C++ to VB.NE, string in C is unamaged and can't be passed to .NET, I tried different types like CString , CStringA, etc, but I found that it is not compatible with FORTRAN and the data comes back "corrupted from the .NET dll
Sameer Alomari
21-Feb-13 9:44am
View
It is complex legacy code, the system is 25 years old, I am not allowed to touch the FORTRAN code because many other systems rely on it, but if there is a way to expose .NET subroutines to be called by FORTRAN without creating an object from the .NET class, then I don't need the intermediate layer.
Sameer Alomari
20-Feb-13 15:31pm
View
No, We need the DLL to be .NET, the purpose of doing this is to start migrating the system to .NET, step by step, and function by function
Sameer Alomari
20-Feb-13 15:30pm
View
Deleted
No, We need the DLL to be .NET, the purpose of doing this is to start migrating the system to .NET, step by step, and function by function
Sameer Alomari
20-Feb-13 15:03pm
View
I am not allowed to change the FORTRAN Code, it is a legacy code and bunch of other systems work with it, so it is not possible.
Also as I said, you can't pass std::string to .NET because .net expects System::String
Sameer Alomari
16-Oct-12 18:59pm
View
It's not considered as infinite loop, this loop will exit once the port is closed (the server completed the reload transactions), the last transaction will notify the thread that the server is done and it's gonna exit the loop.
I have 2 threads running the same code.
Sameer Alomari
20-Jun-12 17:09pm
View
;)
Sameer Alomari
20-Jun-12 15:40pm
View
I believe that you redefine the table somewhere in the code, if you did that, then you will loose the columns that you have created in the form load event.
Check the number of the columns in the datatable before creating a new row, if it's not 3 columns, then find where you redefine your datatable and delete that line.
Sameer Alomari
5-Mar-12 15:59pm
View
Thanks Dave, thread.sleep(1) fixed it :)
<pre lang="vb">
Private Sub dequeue()
While _DequeueThreadIsAlive
Try
Dim TransactionSeqNum As Integer
SyncLock TransactionQ.SyncRoot
Do While TransactionQ.Count > 0
Dim trans As DictionaryEntry
trans = TransactionQ.Dequeue
'
'
' LONG PROCESSING
'
'
SyncLock ConfirmedMessageQueue.SyncRoot
ConfirmedMessageQueue.Enqueue(_receivedData)
incrementMySequenceNumber()
End SyncLock 'ConfirmedMessageQueue
RaiseEvent dataArrived()
Loop
End SyncLock 'TransactionQ
Thread.Sleep(1)
Catch ex As Exception
' Write to log
End Try
End While
Try
SyncLock _dequeueThread
_dequeueThread.Abort()
End SyncLock
Catch ex As Threading.ThreadAbortException
'Ignore ThreadAbortException
End Try
End Sub
</pre>
Sameer Alomari
5-Mar-12 13:51pm
View
Actually I don't know MS Message Queue!!! please give me an example!
Thanks
Sameer Alomari
5-Mar-12 13:50pm
View
Hi Dave,
TransactionSeqNum is a local variable in the dequeue method, so I don't care if it's locked or not.
the point of this is that I am receiving UDP transactions from the server, the listener thread will queue the transactions in _TransactionQ, the DeQueue thread will pull the transactions, read the Sequence Number and make sure that we didn't miss any transaction, if we did, the dequeue thread will request the latest 100 transaction from the server by calling a Web Service Method, then it will find the missed ones and queue the transactions in _ConfirmedMessageQueue, after making sure that the transactions are queued in the correct order, the DeQueue thread will raise an Event that will be handled by the Forms.
This logic will make the UDP reliable, the listener thread will not waste time by finding if the transaction is in the correct order or not, so it will keep listening and will en-queue UDP traffic quickly, the long processing will be done by the De-Queue thread.
I believe the problem is because the dequeue thread is spinning even if there is nothing queued in _TransactionQ, am I correct? and how to fix it?
Show More