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
M

mikeyhardingboyo

@mikeyhardingboyo
About
Posts
16
Topics
13
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Threads in ASP .NET
    M mikeyhardingboyo

    Hi, I have a asp .net application. In the application I attempt to start a thread from globals "Application_start" method. My problem is that the start page never fully loads and the secondary thread fails on a specific line but it gives me no indication as to which one. Thus I get the message "Server Unavailable". Is this a case of deadlock? or do you need to apply threads differently in asp .net. cheers Mike

    ASP.NET csharp sysadmin help question

  • CannotUnloadAppDomainException??? why?
    M mikeyhardingboyo

    "An unhandled exception of type 'System.CannotUnloadAppDomainException' occurred in Unknown Module. Additional information: AppDomain can not be unloaded because the thread 640 can not be unwound out of it." hi, i keep getting this message when i run debug of my asp .net application. Any ideas about how i resolve it? cheers Mike

    ASP.NET csharp debugging question

  • ASP.NET/Flash
    M mikeyhardingboyo

    ok one way you could do this is by using Flash remoting. Download the remoting stuff for flash and then use this flash/asp .net remoting gateway called fluorine (its free, unlike offical one). Once u got it all set up and learnt the ins and outs of using fluorine, u will find you can call asp.net methods from the flash movie. So you could setup a looping poll type thing that waits for info from the textboxs to be entered then updates the flash boxes with that info... sorry its a rushed explaination but shd get you started... http://fluorine.thesilentgroup.com/

    ASP.NET csharp asp-net adobe question

  • SNMP Agent discovery in c#
    M mikeyhardingboyo

    Im wanting to develop a tool that can scan numerous subnets within a network and ping each ip address to see if any SNMP devices exist. What is the most efficent method/architecture to go about this in c#? Thus im mostly interested in the method of calling one ip to the next, SNMP itself isnt an issue here. So what classes etc should I be looking at. Any help much appreciated jeff

    C# help question csharp sysadmin agentic-ai

  • Flash like graphics in Asp .NET
    M mikeyhardingboyo

    Hi im new to ASP .NET and have to build an application that is a heavily data-driven website. More specifically the data from the application will update a image in real-time about changes to devices on a network (each device with be represented in the image (webpage) and change accordingly (e.g transition from green to red if there is a problem with it etc. So my question is could some one point me in the direction of a tutorial for making using cool graphics in ASP .NET, or point me in the direction of a tutorial/code that shows how to link ASP .NET with Flash (ACTIONSCRIPT). Any help much appreciated. FZ.

    ASP.NET help tutorial csharp graphics adobe

  • Programatically getting MIB type from an Agent
    M mikeyhardingboyo

    Hi my question is, how do you go about querying a new agent about the type of MIB module it uses? Or do you have to know the agent etc and hardcode it into a 3rd party snmp manager. thanks Mike

    System Admin question agentic-ai

  • Getting Output file from EXE
    M mikeyhardingboyo

    hI im using the Process Class to execute a Exe application in my program. The exe outputs a file but when I run the program the file isnt in the directory. So how do I get the output into a file? code example would be helpful thanks Mike

    C# question tutorial

  • Using C code in C# project
    M mikeyhardingboyo

    I am building an application in C# but want to make use of a module coded in pure C. Im new to C# programming and not sure what my options as to how to make use of the C code in my C# project? Is there a simple bridging techique I can do? the C module I want to make use of is here http://www.ibr.cs.tu-bs.de/projects/libsmi/ - its a MIB to XML compiler Any help would be much appreciated. Cheers MM

    C# csharp xml help tutorial question

  • SNMP Proxy Agent??
    M mikeyhardingboyo

    Im struggling to understand how I would go about developing an SNMP proxy agent for non-snmp enabled devices. Thus such devices connnect to a machine that has an IP address and does have a SNMP device. So basic question is how do I monitor non-snmp devices in a SNMP management application. I want to develop the proxy (gateway) in either java or c# but dont know where to start and cant find any examples. If there is any off the shelf components I could use please let me know. Thanks

    System Admin question csharp java agentic-ai

  • C# and SNMP
    M mikeyhardingboyo

    Does anyone know any good c# platforms for developing quick applications in SNMP e.g. agent, manager development. Any known good examples of SNMP c# examples. Cheers Mike

    C# csharp agentic-ai

  • Custom SNMP Agent development
    M mikeyhardingboyo

    Hi im new to SNMP and developing SNMP applications. I want to code up a custom agent that will run on a projector that is on my network. I was hoping I could get some guidance as to how to go about this e.g. How do I deploy it onto the projector? whether it is possible to use the C# API, if so what class libraries? if it would be better using something off the shelf to develop it? Do I need to know about the low level API of the projector? Any help on this would be much appreciated. Mike

    C# question csharp sysadmin agentic-ai json

  • open new url
    M mikeyhardingboyo

    Hi a trivial one, how do you open a new url programmitically in the same window as the page thats already open? Im using C# cheers Mike

    ASP.NET csharp question

  • BeginRead Method
    M mikeyhardingboyo

    In the documentation on this method it says i can extract the read data within the callback method? i dont understand how to do this... eg NetworkStream str = (NetworkStream) result.AsyncState; byte[] myReadBuffer = new byte[2048]; int numberOfBytesRead = 0; numberOfBytesRead = str.EndRead(result); it says "To obtain the received data, call the AsyncState method of the IAsyncResult, and extract the buffer contained in the resulting state object" so in my case the IAsyncResult = result and I case the stream state from it but how do i get the data? as theres no method to call?? confused :) mike

    C# question tutorial

  • BeginRead() EndRead() methods with NetworkStream class
    M mikeyhardingboyo

    O, you have helped me understand these methods better. But to clear things up in what im trying to achieve..........The bottom line is I want to be able to read data as it is sent down the stream over time.....Thus my program needs to be able to constantly monitor the stream in-order to react as it were when data(messages) are there to be read off. So in my meain theard after the TCP connection has been set up I call a method which contains the following: if(stream.CanRead) { byte[] myReadBuffer = new byte[2048]; stream.BeginRead(myReadBuffer, 0, myReadBuffer.Length, new AsyncCallback(myReadCallBack),stream); } After this is called the callback method is called (were the seperate thread executes) The code in there looks like this: public void myReadCallBack(IAsyncResult result) { NetworkStream str = (NetworkStream) result.AsyncState; byte[] myReadBuffer = new byte[2048]; int numberOfBytesRead = 0; numberOfBytesRead = str.EndRead(result); myCompleteMessage = String.Concat(myCompleteMessage, Encoding.ASCII.GetString(myReadBuffer, 0, numberOfBytesRead)); while(str.DataAvailable) { str.BeginRead(myReadBuffer, 0, myReadBuffer.Length, new AsyncCallback(myReadCallBack),stream); } if(stream.DataAvailable == false) { TokenizeCommands(myCompleteMessage); myCompleteMessage = ""; str.BeginRead(myReadBuffer, 0, myReadBuffer.Length, new AsyncCallback(myReadCallBack),stream); } } } Thats the code. So im trying to achieve structure that will monitor data when it becomes available on the stream but in an iterative way so the main thread can continue to do other things but react when messages become available on the stream. thanks for ya help, its difficult for me to explain as im a student to this, but im getting there :) cheers mIKE

    C# sysadmin help tutorial question

  • BeginRead() EndRead() methods with NetworkStream class
    M mikeyhardingboyo

    I do use the DataAvailable property. My point is that when i initially call BeginRead() from my main thread, there is always data to read....thus is returns and allows the main thread to continue.... Thus in the seperate thread that the initial BeginRead call created I want it to block in that thread if there is no data to read, until data becomes available..... Thus I have to have a form of iteration where the BeginRead() is called in the seperate thread so it can continue to check for data as long as the program is running. As the seperate thread is executed i do call the EndRead() on each result of a BeginRead() call. The method that the seperate thread executes looks like this...so are you telling me this is not possible? public void myReadCallBack(IAsyncResult result) { NetworkStream str = (NetworkStream) result.AsyncState; byte[] myReadBuffer = new byte[2048]; int numberOfBytesRead = 0; numberOfBytesRead = str.EndRead(result); myCompleteMessage = String.Concat(myCompleteMessage, Encoding.ASCII.GetString(myReadBuffer, 0, numberOfBytesRead)); TokenizeCommands(myCompleteMessage); myCompleteMessage = ""; stream.BeginRead(myReadBuffer, 0, myReadBuffer.Length, new AsyncCallback(myReadCallBack),stream); } mike

    C# sysadmin help tutorial question

  • BeginRead() EndRead() methods with NetworkStream class
    M mikeyhardingboyo

    Hi, iv got a program which has a networkstream for exchangin messages between a server and client...... The problem i had was that the client needs to keep checking the data stream for new messages sent from the server......as im no expert i originally implemented a endless while loop which checked for data in the incoming data buffer but obviously this caused my computer to crash with the number of checks it was doing.......... so i found out about the BeginRead() method which allowed me to create a seperate execution thread using a delegate and callback method......so then i could re call the beginRead() with in the thread so it continously read in formation from the stream............ Now, i dont think i understand how to implement them, as it seems to work one time round and then crashes, or reads data into the buffer that looks like \0\0\0\0\0\0\0\0\0\0\0 (what eva that means)..........i think i need some one to shed some light on these methods so i can get it to work?? cheers sorry for the long message.... mike

    C# sysadmin help tutorial question
  • Login

  • Don't have an account? Register

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